Documentation
¶
Overview ¶
Package logger provides different log levels by wrapping the default log.Logger. There are four levels, in decreasing order of priority: Error, Warning, Info, and Debug. Error and Warning write to os.Stderr and Info and Debug write to os.Stdout. If Debug is set as the default level, all logs include file and line number data.
The package can be configured with two environment variables:
CARTESI_LOG_LEVEL: defines the main log level. Info is the default. CARTESI_LOG_ENABLE_TIMESTAMP: a flag that adds date and time information to the log entries. It is disabled by default.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.