18 lines
387 B
Python
18 lines
387 B
Python
import logging
|
|
import os
|
|
|
|
|
|
GITHUB_TOKEN = os.environ.get('GITHUB_TOKEN')
|
|
|
|
|
|
def init_logger():
|
|
LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper()
|
|
logging.basicConfig(level=LOGLEVEL,
|
|
format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
|
|
datefmt='%m-%d-%Y %H:%M:%S')
|
|
|
|
|
|
init_logger()
|
|
|
|
LOGGER = logging.getLogger('rerunner')
|