Logging
Logging can be configured in the .env
file using the LOG_*
variables.
Log Levels
|
The |
|
The |
|
The |
|
The |
|
The |
|
Reserved; unused. |
|
Reserved; unused. |
|
The |
|
If both logging |
Env Variables:
# Logging level we want to use (values: debug, info, warn, error, dpanic, panic, fatal)
# Minimise the logging level. If set to "warn", Levels warn, error, dpanic panic and fatal will be logged.
LOG_LEVEL=debug
//Editor's note: Line 63 - MinimiZe
# Disables JSON format for logging and enables more human-readable output with colors.
# Disable for production.
LOG_DEBUG=true/false
# 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.
# Log warnings, errors, panic, fatals. Everything from workflow is logged.
# See more examples and documentation here: https://github.com/moul/zapfilter
LOG_FILTER=warn+:workflow.*
# Set to true to see where the logging was called from.
# Disable for production.
LOG_INCLUDE_CALLER=true/false
# Include stack-trace when logging at a specified level or below.
# Disable for production.
# Default value: "dpanic"
# Possible values: debug, info, warn, error, dpanic, panic, fatal
LOG_STACKTRACE_LEVEL
Workflow Logging
The workflow function steps allow you to log messages from inside a workflow.
Make sure that the .env
variables are set accordingly.
You can use a
|
Function | .env Configuration |
---|---|
|
|
|
|
|
|
|