From cd2f7ae69d85c56d4865423f6f76d6911f7fe8a6 Mon Sep 17 00:00:00 2001 From: William Perron Date: Sun, 10 Jan 2021 08:36:53 -0500 Subject: [PATCH] docs(std/log): add default values description (#9060) --- std/log/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/std/log/README.md b/std/log/README.md index cf09b187e5..1208f5ba99 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