Skip to content

Commit

Permalink
set logger levels through handler
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaspie committed Jan 17, 2024
1 parent d5ea72a commit 694b696
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pynxtools/dataconverter/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@
logger = logging.getLogger("pynxtools")

# Lowest level log allows to other levels erros, crittical, info and debug
handler = logging.StreamHandler()
formatter = logging.Formatter("%(message)s")
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)

0 comments on commit 694b696

Please sign in to comment.