osc/deploy/ProxyPool/Test/testLogHandler.py
2025-05-28 19:16:17 +08:00

36 lines
795 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name testLogHandler
Description :
Author : J_hao
date 2017/8/2
-------------------------------------------------
Change Activity:
2017/8/2:
-------------------------------------------------
"""
__author__ = 'J_hao'
from Util.LogHandler import LogHandler
# noinspection PyPep8Naming
def testLogHandler():
"""
test function LogHandler in Util/LogHandler
:return:
"""
log = LogHandler('test')
log.info('this is a log from test')
log.resetName(name='test1')
log.info('this is a log from test1')
log.resetName(name='test2')
log.info('this is a log from test2')
if __name__ == '__main__':
testLogHandler()