Skip to content

Commit

Permalink
added warning and critical
Browse files Browse the repository at this point in the history
  • Loading branch information
Polichinel committed Oct 30, 2024
1 parent 44ff4c9 commit 3f2b6e4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion common_configs/config_log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ handlers:
backupCount: 10
encoding: "utf8"

warning_file_handler:
class: logging.handlers.TimedRotatingFileHandler
level: WARNING
formatter: detailed
filename: "{LOG_PATH}/views_pipeline_WARNING.log"
when: "midnight"
backupCount: 20
encoding: "utf8"

error_file_handler:
class: logging.handlers.TimedRotatingFileHandler
level: ERROR
Expand All @@ -39,6 +48,15 @@ handlers:
backupCount: 60
encoding: "utf8"

critical_file_handler:
class: logging.handlers.TimedRotatingFileHandler
level: CRITICAL
formatter: detailed
filename: "{LOG_PATH}/views_pipeline_CRITICAL.log"
when: "midnight"
backupCount: 90
encoding: "utf8"

root:
level: DEBUG
handlers: [console, info_file_handler, debug_file_handler, error_file_handler]
handlers: [console, info_file_handler, debug_file_handler, warning_file_handler, error_file_handler, critical_file_handler]

0 comments on commit 3f2b6e4

Please sign in to comment.