import logging.config
import os
from time import sleep

log_path = './logs'
if not os.path.exists(log_path):
    os.makedirs(log_path)
CONF_LOG = "./log_conf"
logging.config.fileConfig(CONF_LOG);  # 采用配置文件
# print(logging.config.fileConfig(CONF_LOG))
logger = logging.getLogger('applog')

if __name__ == '__main__':
    while True:
        logger.info("Hello ！")
        logger.error("error！")
        sleep(2)
7458226d5885a4bb30fb9e5685160a0762baf4b0
<mask token>

<mask token>
if not os.path.exists(log_path):
    os.makedirs(log_path)
<mask token>
logging.config.fileConfig(CONF_LOG)
<mask token>
if __name__ == '__main__':
    while True:
        logger.info('Hello ！')
        logger.error('error！')
        sleep(2)

<mask token>
log_path = './logs'
if not os.path.exists(log_path):
    os.makedirs(log_path)
CONF_LOG = './log_conf'
logging.config.fileConfig(CONF_LOG)
logger = logging.getLogger('applog')
if __name__ == '__main__':
    while True:
        logger.info('Hello ！')
        logger.error('error！')
        sleep(2)

import logging.config
import os
from time import sleep
log_path = './logs'
if not os.path.exists(log_path):
    os.makedirs(log_path)
CONF_LOG = './log_conf'
logging.config.fileConfig(CONF_LOG)
logger = logging.getLogger('applog')
if __name__ == '__main__':
    while True:
        logger.info('Hello ！')
        logger.error('error！')
        sleep(2)

import logging.config
import os
from time import sleep

log_path = './logs'
if not os.path.exists(log_path):
    os.makedirs(log_path)
CONF_LOG = "./log_conf"
logging.config.fileConfig(CONF_LOG);  # 采用配置文件
# print(logging.config.fileConfig(CONF_LOG))
logger = logging.getLogger('applog')

if __name__ == '__main__':
    while True:
        logger.info("Hello ！")
        logger.error("error！")
        sleep(2)