Files
corteza/pkg/options/log.yaml
T

50 lines
1.3 KiB
YAML

props:
- name: debug
type: bool
description: |
Disables JSON format for logging and enables more human-readable output with colors.
Disable for production.
- name: level
default: "warn"
description: |
Minimum logging level. If set to "warn",
Levels warn, error, dpanic panic and fatal will be logged.
Recommended value for production: warn
Possible values: debug, info, warn, error, dpanic, panic, fatal
- name: filter
description: |
Log filtering rules by level and name (log-level:log-namespace).
Please note that level (LOG_LEVEL) is applied before filter and it affects the final output!
Leave unset for production.
Example:
`warn+:* *:auth,workflow.*`
Log warnings, errors, panic, fatals. Everything from auth and workflow is logged.
See more examples and documentation here: https://github.com/moul/zapfilter
- name: includeCaller
type: bool
default: false
description: |
Set to true to see where the logging was called from.
Disable for production.
- name: stacktraceLevel
default: "dpanic"
description: |
Include stack-trace when logging at a specified level or below.
Disable for production.
Possible values: debug, info, warn, error, dpanic, panic, fatal