Files
OpenBB/openbb_terminal/core/log/generation/common.py
Henrique Joaquim ea04594e96 Logging login (#4046)
* basic logging for the login

* removing unused import

* hacking the logs custom filter to not filter the email

* black

* cooping with the new changes

* removing redundant method
2023-01-26 17:52:03 +00:00

19 lines
391 B
Python

# IMPORTATION STANDARD
import logging
# IMPORTATION THIRDPARTY
# IMPORTATION INTERNAL
from openbb_terminal.core.log.generation.path_tracking_file_handler import (
PathTrackingFileHandler,
)
def do_rollover():
"""RollOver the log file."""
for handler in logging.getLogger().handlers:
if isinstance(handler, PathTrackingFileHandler):
handler.doRollover()