Module structlog
Entry point for loading structlog modules.
Functions
configure (logger_configs) | Configure loggers to be retrieved later using get_logger(...) |
get_logger (name) | Get a logger by name |
Tables
M | StructLog Module |
Functions
- configure (logger_configs)
-
Configure loggers to be retrieved later using get_logger(...)
Parameters:
- logger_configs The loggers' configurations
Usage:
configure({ logger_name = { pipelines = { { level, processors, formatter, sink }, { ... } }}})
- get_logger (name)
-
Get a logger by name
Parameters:
- name The name of the logger
Returns:
-
A copy of the configured logger, nil if not found