mirror of
https://github.com/simon987/lbry_feed.git
synced 2025-04-04 08:33:00 +00:00
14 lines
330 B
Python
14 lines
330 B
Python
import logging
|
|
import sys
|
|
from logging import StreamHandler
|
|
|
|
logger = logging.getLogger("default")
|
|
logger.setLevel(logging.DEBUG)
|
|
|
|
for h in logger.handlers:
|
|
logger.removeHandler(h)
|
|
|
|
handler = StreamHandler(sys.stdout)
|
|
handler.formatter = logging.Formatter("%(asctime)s %(levelname)-5s %(message)s")
|
|
logger.addHandler(handler)
|