✨ feat(logger.py): configure default logger with optional log level and log file parameters for better customization
🔧 chore(logger.py): remove unnecessary blank lines and comments for cleaner code
This commit is contained in:
parent
1a5f33ddd4
commit
583eca137a
1 changed files with 4 additions and 0 deletions
|
|
@ -28,3 +28,7 @@ def configure(log_level: str = "INFO", log_file: Path = None): # type: ignore
|
||||||
logger.info(f"Logger set up with log level: {log_level_value}({log_level})")
|
logger.info(f"Logger set up with log level: {log_level_value}({log_level})")
|
||||||
if log_file:
|
if log_file:
|
||||||
logger.info(f"Log file: {log_file}")
|
logger.info(f"Log file: {log_file}")
|
||||||
|
|
||||||
|
|
||||||
|
# Configure default logger
|
||||||
|
configure()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue