Skip to content

Commit

Permalink
write an empty logger
Browse files Browse the repository at this point in the history
  • Loading branch information
mengmengzhang2019 committed Jan 29, 2024
1 parent c298a75 commit 2682071
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ceasiompy/utils/ceasiomlogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_logger():
logger (logger): Logger
"""

"""

logger = logging.getLogger("CEASIOMpy")

# NOTE: Multiple calls to getLogger() with the same name will return a
Expand All @@ -54,6 +54,7 @@ def get_logger():
logger.setLevel(logging.DEBUG)

# Write logfile
"""
file_formatter = logging.Formatter("%(asctime)s - %(levelname)8s - %(module)18s - %(message)s")
file_handler = logging.FileHandler(filename=LOGFILE, mode="w")
file_handler.setLevel(logging.DEBUG) # Level for the logfile
Expand All @@ -66,9 +67,9 @@ def get_logger():
console_handler.setLevel(logging.DEBUG) # Level for the console log
console_handler.setFormatter(console_formatter)
logger.addHandler(console_handler)
"""
return logger
"""


def add_to_runworkflow_history(working_dir: Path, comment: str = "") -> None:
"""Add a line to the runworkflow history"""
Expand Down

0 comments on commit 2682071

Please sign in to comment.