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 | A prefix string to be added to the log message. | none |
String |
Level |
No | The logging level to use. | LogLevel::Info |
LogLevel Var(LogLevel) |
Name |
No | The name of the logger to use. | shards |
String Var(String) |
Logs the output of a shard or the value of a variable to the console along with an optional prefix string (note that the system will add a :
to the prefix). The logging level can be specified to control the verbosity of the log output.
Details¶
This shard is used for printing information to the console for debugging purposes.
It can log the output of a shard or the value of a variable. It can also prefix a message string to the logged output while displaying it in the console.
Examples¶
1 2 3 4 5 6 7 8 9 |
|
[info] [sample-wire] 8
[info] [sample-wire] I am a var
[info] [sample-wire] String: 12
[info] [sample-wire] 8
[warning] [sample-wire] I am a var
[error] [sample-wire] String: 12