Colored
Last updated
Was this helpful?
Last updated
Was this helpful?
This package implements the gen.LoggerBehavior
interface and provides the ability to output log messages to standard output with color highlighting.
Below is a demonstration of log messages (from nodes, processes, and meta-processes) with different logging levels:
<time> <level> <log source> [process name] [process behavior]: <log message>
When logging, the package also highlights in color the types gen.Atom
, gen.PID
, gen.ProcessID
, gen.Ref
, gen.Alias
, gen.Event
.
ShortLevelName
Displays the shortened name of the log level
IncludeBehavior
Includes the name of the process behavior in the log message
IncludeName
includes the registered name of the process in the log message
Sets the format for the timestamp of log messages. You can use any existing format (see ) or define your own. By default, the time is displayed in nanoseconds