Documentation
¶
Overview ¶
Package slogjson contains the slogger that writes logs in JSON.
Format
{
"ts": "2019-09-10T20:19:07.159852-05:00",
"level": "INFO",
"logger_names": ["comp", "subcomp"],
"msg": "hi",
"caller": "slog/examples_test.go:62",
"func": "cdr.dev/slog/sloggers/slogtest_test.TestExampleTest",
"trace": "<traceid>",
"span": "<spanid>",
"fields": {
"my_field": "field value"
}
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.