Skip to content

Commit

Permalink
utils_fast.logToFile return handler
Browse files Browse the repository at this point in the history
needed so that the handler can be removed later
  • Loading branch information
tgbugs committed Nov 24, 2024
1 parent 5b6036d commit 8fff8ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyontutils/utils_fast.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def logToFile(logger, path):
lfh = logging.FileHandler(path.as_posix())
lfh.setFormatter(logger.handlers[0].formatter)
logger.addHandler(lfh)
return lfh


def makeSimpleLogger(name, color=True):
Expand Down

0 comments on commit 8fff8ce

Please sign in to comment.