mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
docs(std/log): add default values description (#9060)
This commit is contained in:
parent
ab5ecabe22
commit
cd2f7ae69d
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue