# coding=utf-8

import logging
import os
from logging.handlers import TimedRotatingFileHandler

worker_logger = logging.getLogger('worker')
worker_logger.setLevel(logging.INFO)

console = logging.StreamHandler()
console.setLevel(logging.INFO)
formatter = logging.Formatter(
    '%(asctime)s %(levelname)s [%(process)d %(thread)d] [%(filename)s %(funcName)s %(lineno)d] [%(message)s]', '%c'
)
console.setFormatter(formatter)

worker_logger.addHandler(console)

worker_Rthandler = TimedRotatingFileHandler(
    os.path.join(os.path.dirname(__file__), '../Logs/workerSyslog.log'),
    when='midnight',
    interval=1,
    backupCount=15,
    encoding='utf-8'
)

worker_Rthandler.setLevel(logging.INFO)
worker_Rthandler.setFormatter(formatter)
worker_logger.addHandler(worker_Rthandler)

6ab82b2e18305f0ead58d336144a8ef2cee8244c
<mask token>

<mask token>
worker_logger.setLevel(logging.INFO)
<mask token>
console.setLevel(logging.INFO)
<mask token>
console.setFormatter(formatter)
worker_logger.addHandler(console)
<mask token>
worker_Rthandler.setLevel(logging.INFO)
worker_Rthandler.setFormatter(formatter)
worker_logger.addHandler(worker_Rthandler)

<mask token>
worker_logger = logging.getLogger('worker')
worker_logger.setLevel(logging.INFO)
console = logging.StreamHandler()
console.setLevel(logging.INFO)
formatter = logging.Formatter(
    '%(asctime)s %(levelname)s [%(process)d %(thread)d] [%(filename)s %(funcName)s %(lineno)d] [%(message)s]'
    , '%c')
console.setFormatter(formatter)
worker_logger.addHandler(console)
worker_Rthandler = TimedRotatingFileHandler(os.path.join(os.path.dirname(
    __file__), '../Logs/workerSyslog.log'), when='midnight', interval=1,
    backupCount=15, encoding='utf-8')
worker_Rthandler.setLevel(logging.INFO)
worker_Rthandler.setFormatter(formatter)
worker_logger.addHandler(worker_Rthandler)

import logging
import os
from logging.handlers import TimedRotatingFileHandler
worker_logger = logging.getLogger('worker')
worker_logger.setLevel(logging.INFO)
console = logging.StreamHandler()
console.setLevel(logging.INFO)
formatter = logging.Formatter(
    '%(asctime)s %(levelname)s [%(process)d %(thread)d] [%(filename)s %(funcName)s %(lineno)d] [%(message)s]'
    , '%c')
console.setFormatter(formatter)
worker_logger.addHandler(console)
worker_Rthandler = TimedRotatingFileHandler(os.path.join(os.path.dirname(
    __file__), '../Logs/workerSyslog.log'), when='midnight', interval=1,
    backupCount=15, encoding='utf-8')
worker_Rthandler.setLevel(logging.INFO)
worker_Rthandler.setFormatter(formatter)
worker_logger.addHandler(worker_Rthandler)

# coding=utf-8

import logging
import os
from logging.handlers import TimedRotatingFileHandler

worker_logger = logging.getLogger('worker')
worker_logger.setLevel(logging.INFO)

console = logging.StreamHandler()
console.setLevel(logging.INFO)
formatter = logging.Formatter(
    '%(asctime)s %(levelname)s [%(process)d %(thread)d] [%(filename)s %(funcName)s %(lineno)d] [%(message)s]', '%c'
)
console.setFormatter(formatter)

worker_logger.addHandler(console)

worker_Rthandler = TimedRotatingFileHandler(
    os.path.join(os.path.dirname(__file__), '../Logs/workerSyslog.log'),
    when='midnight',
    interval=1,
    backupCount=15,
    encoding='utf-8'
)

worker_Rthandler.setLevel(logging.INFO)
worker_Rthandler.setFormatter(formatter)
worker_logger.addHandler(worker_Rthandler)
