diff --git a/pyontutils/utils_fast.py b/pyontutils/utils_fast.py index f57d82a8..3ecd7e48 100644 --- a/pyontutils/utils_fast.py +++ b/pyontutils/utils_fast.py @@ -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):