|
import os
|
|
import logging
|
|
|
|
# set up logging
|
|
LOGLEVEL = os.environ.get('LOGLEVEL', 'INFO').upper()
|
|
logger = logging.getLogger('panda')
|
|
logger.setLevel(LOGLEVEL)
|
|
|
|
handler = logging.StreamHandler()
|
|
handler.setFormatter(logging.Formatter('%(message)s'))
|
|
logger.addHandler(handler)
|