Skip to content

Commit

Permalink
Merge pull request #28 from sdaza/dev
Browse files Browse the repository at this point in the history
fix logging
  • Loading branch information
sdaza authored Dec 13, 2024
2 parents 420666d + 940bee0 commit ae6b3dc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions experiment_utils/experiment_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ 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'
)
)
console_handler.setFormatter(formatter)
self.logger.addHandler(console_handler)
self.data = self.__ensure_spark_df(data)
self.outcomes = self.__ensure_list(outcomes)
Expand Down

0 comments on commit ae6b3dc

Please sign in to comment.