summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std/log/README.md7
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