mirror of
https://github.com/tropicoo/yt-dlp-bot.git
synced 2025-03-01 17:23:25 +08:00
9 lines
268 B
Python
9 lines
268 B
Python
import logging
|
|
|
|
|
|
def setup_logging():
|
|
log_format = '%(asctime)s - [%(levelname)s] - [%(name)s:%(lineno)s] - %(message)s'
|
|
logging.basicConfig(format=log_format, level=logging.INFO)
|
|
|
|
log = logging.getLogger('sqlalchemy.engine.Engine')
|
|
log.handlers.pop()
|