Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaza committed Dec 13, 2024
1 parent e28cc84 commit 40f0cb1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions experiment_utils/experiment_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,15 @@ def __init__(

self.logger = logging.getLogger('Experiment Analyzer')
self.logger.setLevel(logging.INFO)
self.logger.handlers = []
console_handler = logging.StreamHandler()
formatter = logging.Formatter(
fmt='%(asctime)s - %(message)s',
datefmt='%d/%m/%Y %I:%M:%S %p'
console_handler.setFormatter(
logging.Formatter(
fmt='%(asctime)s - %(message)s',
datefmt='%d/%m/%Y %I:%M:%S %p'
)
)
self.logger.addHandler(console_handler)
console_handler.setFormatter(formatter)
self.logger.addHandler(console_handler)
self.data = self.__ensure_spark_df(data)
Expand Down

0 comments on commit 40f0cb1

Please sign in to comment.