logger - console
Utility class to log information
Anacleto saves the logs of your scripts in rotating files using the json format.
The logging functionality can be accessed using both the console
and logger
classes. Both features give access to the methods log
, info
, warn
, error
all these methods allow you to pass a variable number of attributes and they will arrange themselves to create a properly formatted log.
Example
console result
log
Log a message
Syntax
info
Log a info level message
Syntax
warn
Log a warn level message
Syntax
error
Log a error level message
Syntax
Last updated