[−][src]Function fil_logger::init
pub fn init()
Initializes a new logger. It logs to stderr.
The default format is:
<timestamp>\t<log-level>\t<module-name>\t<source-file>:<line-number>\t<log-message>
If the environment variable GOLOG_LOG_FMT=json
is set, then the output is formatted as JSON:
{
"level": "<log-level>",
"ts":"<timestamp>",
"logger":"<module-name>",
"caller":"<source-file>:<line-number>",
"msg":"<log-message>"
}
Panics
Panics if a global logger was already set.