File size: 461 Bytes
c69cba4
 
 
 
19fc5ee
 
c69cba4
 
 
 
 
 
988981a
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import logging


logger = logging.getLogger(__name__)
logging.getLogger('discord').setLevel(logging.ERROR)
logging.getLogger('discord.gateway').setLevel(logging.ERROR)

def setup_logger() -> None:
    """
    Logger setup.
    """
    logger.setLevel(logging.DEBUG)
    formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
    handler = logging.StreamHandler()
    handler.setFormatter(formatter)
    logger.addHandler(handler)