Skip to content

Commit

Permalink
Send StreamHandler loggers to stdout (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamalama authored Jul 26, 2023
1 parent 9f8fe21 commit c16d50d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ctms/log.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Logging configuration"""

import logging
import logging.config
import sys
from typing import Any, Dict, List, Optional

import structlog
Expand Down Expand Up @@ -48,6 +48,7 @@ def configure_logging(
"handlers": {
"humans": {
"class": "logging.StreamHandler",
"stream": sys.stdout,
"formatter": "dev_console",
"level": logging.DEBUG,
},
Expand All @@ -56,6 +57,7 @@ def configure_logging(
},
"mozlog": {
"class": "logging.StreamHandler",
"stream": sys.stdout,
"formatter": "mozlog_json",
"level": logging.DEBUG,
},
Expand Down

0 comments on commit c16d50d

Please sign in to comment.