[Question] Is there a way to use json_logging.config_root_logger with custom formatter
sainoba opened this issue · 2 comments
sainoba commented
Currently when using json_logging.config_root_logger()
it uses either JSONLogFormatter
or JSONLogWebFormatter
.
Is there a way to set it up so it uses a customer formatter?
bobbui commented
@sainoba addressed in 1.2.2, you need to pass the customer formatter in the init method, after that call json_logging.config_root_logger then the root logger will be configured to use that custom formatter
sainoba commented
Awesome, thanks for the quick response.