docs(std/log): add default values description (#9060)

This commit is contained in:
William Perron 2021-01-10 08:36:53 -05:00 committed by GitHub
parent ab5ecabe22
commit cd2f7ae69d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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