Skip to content

Log

Name Mandatory Description Default Type
⬅️ Input The value to be logged to the console. Any
Output ➡️ The same value that was inputted, unmodified. Any
Prefix No The message to prefix to the logged output. Note: the prefix will include a colon ':' before the value. `` String
Level No The level of logging. LogLevel::Info LogLevel
Name No The name of the logger to use, the default is 'shards'. shards String

Logs the output of a shard or the value of a variable to the console along with an optional prefix string. The logging level can be specified to control the verbosity of the log output.

Examples

1
2
3
4
"I am a var" = var
2 | Math.Multiply(4) | Log(Level: LogLevel::Info) ;; log previous shard output
var | Log(Level: LogLevel::Warning) ;; log a variable value
3 | Math.Add(4) | Log(Prefix: "String" Level: LogLevel::Error) ;; prefix a string to the logged output


 

1
2
3
4
"I am a var" = var
2 | Math.Multiply(4) | Log ;; log previous shard output
var | Log ;; log a variable value
3 | Math.Add(4) | Log(Prefix: "String")