mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
FEAT: documentation for %F field
This commit is contained in:
parent
03b3f50870
commit
397b06e15f
@ -146,6 +146,7 @@ Fields can be any of:
|
||||
- `%M` function or method name (requires `enableCallStack: true` on the category, see [configuration object](api.md))
|
||||
- `%C` class name (requires `enableCallStack: true` on the category, see [configuration object](api.md))
|
||||
- `%A` function or method name alias (requires `enableCallStack: true` on the category, see [configuration object](api.md))
|
||||
- `%F` fully qualified caller name (requires `enableCallStack: true` on the category, see [configuration object](api.md))
|
||||
- `%x{<tokenname>}` add dynamic tokens to your log. Tokens are specified in the tokens parameter.
|
||||
- `%X{<tokenname>}` add values from the Logger context. Tokens are keys into the context values.
|
||||
- `%[` start a coloured block (colour will be taken from the log level, similar to `colouredLayout`)
|
||||
|
||||
@ -112,6 +112,7 @@ function dummyLayout(loggingEvent) {
|
||||
* - %M method or function name
|
||||
* - %C class name
|
||||
* - %A method or function name
|
||||
* - %F fully qualified caller name
|
||||
* - %x{<tokenname>} add dynamic tokens to your log. Tokens are specified in the tokens parameter
|
||||
* - %X{<tokenname>} add dynamic tokens to your log. Tokens are specified in logger context
|
||||
* You can use %[ and %] to define a colored block.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user