[][src]Function fil_logger::go_log_json_format

pub fn go_log_json_format(
    writer: &mut dyn Write,
    now: &mut DeferredNow,
    record: &Record
) -> Result<(), Error>

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>"
}