mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-23 23:32:05 +00:00
12 lines
242 B
Python
12 lines
242 B
Python
import logging
|
|
import os
|
|
|
|
logging.basicConfig(
|
|
level=os.getenv("LOG_LEVEL", "WARNING"),
|
|
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
|
|
)
|
|
|
|
|
|
def get_logger(name: str) -> logging.Logger:
|
|
return logging.getLogger(name)
|