Skip to content

Commit

Permalink
minor : changed log formatter, for more readability
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitberanger committed Jun 1, 2022
1 parent a382df1 commit bee3b76
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion niix2bids/utils.py
Expand Up @@ -28,7 +28,9 @@ def init_logger(write_file: bool, out_dir: str) -> None:
log.setLevel(logging.DEBUG)

# create formatter
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
formatter = logging.Formatter(
fmt='%(asctime)s - %(name)-55s - %(levelname)-8s - %(message)s',
datefmt='%Y-%m-%d %H:%M:%S')

# create console handler
consoleHandler = logging.StreamHandler() # create
Expand Down

0 comments on commit bee3b76

Please sign in to comment.