Skip to content

Commit

Permalink
Set root log level to DEBUG so logs show in console
Browse files Browse the repository at this point in the history
  • Loading branch information
Mews committed Jun 18, 2024
1 parent 0446401 commit c735dfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tiny_web_crawler/logging.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import logging
from logging import DEBUG, INFO, WARNING, ERROR, CRITICAL, FATAL, NOTSET # pylint: disable=unused-import

LOGGER_NAME: str = "tiny-web-crawler-logger"
LOGGER_NAME: str = "tiny-web-crawler"
DEFAULT_LOG_LEVEL = INFO

logging.getLogger().setLevel(level=DEFAULT_LOG_LEVEL)
logging.basicConfig(level=DEBUG)
logging.getLogger(LOGGER_NAME).setLevel(level=DEFAULT_LOG_LEVEL)

def get_logger() -> logging.Logger:
return logging.getLogger(LOGGER_NAME)
Expand Down

0 comments on commit c735dfb

Please sign in to comment.