Skip to content

Commit

Permalink
feat: Add logging to file
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMichelsen committed Nov 27, 2022
1 parent 89f2134 commit 24bef97
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/metaDMG/loggers/log_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,25 @@ handlers:
class: rich.logging.RichHandler
level: INFO
formatter: brief
# stream: ext://sys.stdout
show_time: true
show_level: true
show_path: false
rich_tracebacks: true
log_time_format: "%Y-%m-%d %H:%M:%S"

error_file_handler:
class: logging.FileHandler
level: DEBUG
formatter: simple
filename: logs/log.txt
encoding: utf8

root:
level: DEBUG
handlers: [console]
handlers: [console, error_file_handler]

logger_tt:
# suppress: ["exchangelib", "numba", "matplotlib", "absl", "jax"]
suppress: ["jax"]
suppress: ["numba", "jax"]
suppress_level_below: "WARNING"
capture_print: False
strict: False
Expand Down

0 comments on commit 24bef97

Please sign in to comment.