Skip to content

Commit

Permalink
log to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneu committed Feb 3, 2019
1 parent f2d1ef7 commit ce10657
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ __pycache__/
venv/
*.pem
.vscode/
*.log
3 changes: 2 additions & 1 deletion honeycast/log.py
@@ -1,11 +1,12 @@
import logging
import sys

def apply_logger_config(logger):
logger.setLevel(logging.DEBUG)

formatter = logging.Formatter(fmt="%(asctime)s [%(levelname)s]\t%(message)s")
handlers = [
logging.StreamHandler(),
logging.StreamHandler(stream=sys.stdout),
]

logger.handlers.clear()
Expand Down

0 comments on commit ce10657

Please sign in to comment.