Skip to content

Commit

Permalink
elapsed time format logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Apr 25, 2024
1 parent 8bac1b6 commit cbb5964
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configs/resident/logging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ logging:
console:
class: logging.StreamHandler
stream: ext://sys.stdout
formatter: simpleFormatter
formatter: elapsedFormatter
level: INFO

formatters:
Expand All @@ -53,3 +53,7 @@ logging:
format: '%(asctime)s - %(levelname)s - %(name)s - %(message)s'
datefmt: '%d/%m/%Y %H:%M:%S'

elapsedFormatter:
(): activitysim.core.tracing.ElapsedTimeFormatter
format: '[{elapsedTime}] {levelname:s}: {message:s}'
style: '{'

0 comments on commit cbb5964

Please sign in to comment.