Skip to content

Commit

Permalink
update logger to output location of log file
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanieKemna committed Jul 22, 2024
1 parent 0bb96cf commit c9467cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mlfmu/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def configure_logging(
if not log_file.parent.exists():
log_file.parent.mkdir(parents=True, exist_ok=True)
file_handler = logging.FileHandler(str(log_file.absolute()), "a")
print(f"Logging to: {log_file.absolute()}")
file_handler.setLevel(log_level_file_numeric)
file_formatter = logging.Formatter("%(asctime)s %(levelname)-8s %(message)s", "%Y-%m-%d %H:%M:%S")
file_handler.setFormatter(file_formatter)
Expand Down

0 comments on commit c9467cb

Please sign in to comment.