diff options
author | William Perron <hey@wperron.io> | 2021-01-10 08:36:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 08:36:53 -0500 |
commit | cd2f7ae69d85c56d4865423f6f76d6911f7fe8a6 (patch) | |
tree | e5a32fc466c8455699e05ada61b4478148330d62 | |
parent | ab5ecabe222df3f16748629b244b5e8265760d91 (diff) |
docs(std/log): add default values description (#9060)
-rw-r--r-- | std/log/README.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/std/log/README.md b/std/log/README.md index cf09b187e..1208f5ba9 100644 --- a/std/log/README.md +++ b/std/log/README.md @@ -83,6 +83,11 @@ class LogRecord { } ``` +### Log Levels + +The different log levels are exported in the `LogLevels` enum type. It defaults +to INFO if none is specified. + ### Handlers Handlers are responsible for actual output of log messages. When a handler is @@ -189,6 +194,8 @@ option for handler. It can be either simple string-based format that uses `LogRecord` fields or more complicated function-based one that takes `LogRecord` as argument and outputs string. +The default log format is `{levelName} {msg}`. + Eg. ```ts |