Function fil_logger::go_log_json_format
source · [−]pub fn go_log_json_format(
writer: &mut dyn Write,
now: &mut DeferredNow,
record: &Record<'_>
) -> Result<(), Error>
Expand description
Logs in the same JSON format as IPFS go-log does.
One log entry has this structure:
{
"level": "<log-level>",
"ts":"<timestamp>",
"logger":"<module-name>",
"caller":"<source-file>:<line-number>",
"msg":"<log-message>"
}