Initial commit
This commit is contained in:
15
telegram_downloader_bot/logger.py
Normal file
15
telegram_downloader_bot/logger.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import logging
|
||||
|
||||
|
||||
def configure_logger(log_level: str) -> logging.Logger:
|
||||
log_format = (
|
||||
"%(asctime)s | %(levelname)7s | %(module)10s "
|
||||
"| %(funcName)20s | %(message)s"
|
||||
)
|
||||
|
||||
logging.basicConfig(
|
||||
level=log_level,
|
||||
format=log_format,
|
||||
)
|
||||
|
||||
return logging.getLogger()
|
||||
Reference in New Issue
Block a user