Encoders
Classes
EncoderCompress
Encoder
Compress each msg with zlib compress (requires zlib).
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
| EncoderFormat(template: str)
|
Encoder
Apply the specified format to each log msg.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
vars
Variables available to use.
MESSAGE
Raw log message (newline stripped).
MESSAGE_NEWLINE
| .MESSAGE_NEWLINE = '${msgnl}'
|
Raw log message (with newline).
| .TIME_FORMAT = TimeFormatter
|
Current time in user-defined format.
TIME_MS
Current unix time in milliseconds.
TIME_US
Current unix time in microseconds.
EncoderGzip
Encoder
Compress each msg with gzip (requires zlib).
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
EncoderJson
| EncoderJson(template: str)
|
EncoderFormat
Apply the specified format to each log msg with each variable json escaped.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
vars
Variables available to use.
MESSAGE
Raw log message (newline stripped).
MESSAGE_NEWLINE
| .MESSAGE_NEWLINE = '${msgnl}'
|
Raw log message (with newline).
| .TIME_FORMAT = TimeFormatter
|
Current time in user-defined format.
TIME_MS
Current unix time in milliseconds.
TIME_US
Current unix time in microseconds.
EncoderNewline
Encoder
Add a newline char to each log msg.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
EncoderPrefix
| EncoderPrefix(value: str)
|
Encoder
Add a raw prefix to each log msg.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
EncoderSuffix
| EncoderSuffix(value: str)
|
EncoderPrefix
Add a raw suffix to each log msg
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.
alias
Alias to address this value.
args_joiner
Symbol to join arguments with.
name
Name to represent the group.
name_separator
| .name_separator: str = ':'
|
Separator to add after name portion.
name_separator_strip
| .name_separator_strip: bool = False
|
Strip leading and trailing name separator from the result.
opt_key
| .opt_key: str | None = None
|
Allows swapping default option key with custom value.
plugin
| .plugin: bool | str = False
|
Indication this option group belongs to a plugin.