竹若泠 进行的变更
This commit is contained in:
parent
7b8dbabc9b
commit
c79a0dbbb4
@ -361,6 +361,15 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
os.chdir('../../')
|
os.chdir('../../')
|
||||||
# 在这里可以使用 add_kwargs_to_global
|
# 在这里可以使用 add_kwargs_to_global
|
||||||
|
logger = Logger(name="Main")
|
||||||
|
logger1 = Logger(name="RenderThread")
|
||||||
|
logger2 = Logger(name="TaskExecuter#1-1")
|
||||||
|
while True:
|
||||||
|
logger.info("Hello World!!")
|
||||||
|
logger1.error("OpenGL Error 10086")
|
||||||
|
logger2.warning("Cannot write file.")
|
||||||
|
exit(0)
|
||||||
|
|
||||||
some_logger = Logger(name='aaa')
|
some_logger = Logger(name='aaa')
|
||||||
some_logger.level = ALL
|
some_logger.level = ALL
|
||||||
some_logger.warn('aaaa', 'aaaa')
|
some_logger.warn('aaaa', 'aaaa')
|
||||||
|
Loading…
Reference in New Issue
Block a user