LogMacros

scalus.cardano.onchain.plutus.prelude.LogMacros
object LogMacros

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
LogMacros.type

Members list

Value members

Concrete methods

def logMacro(using Quotes)(args: Expr[Seq[Any]]): Expr[Unit]

Macro implementation for the variadic log function.

Macro implementation for the variadic log function.

Expands log(a1, a2, ..., an) into a single trace call with all arguments concatenated via appendString, separated by spaces.

String literals are passed through as-is (no quoting), serving as labels. String expressions and all other types are converted via their Show instance (which adds quotes for strings), or via ToData then Show[Data] as a fallback.

Value parameters

args

the varargs sequence expression

Attributes

Returns

a quoted Unit expression containing the trace call