From c79a0dbbb4cb793d40d505f876311e2bf05efaf0 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 12 Aug 2022 21:07:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=B9=E8=8B=A5=E6=B3=A0=20=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Difficult_Rocket/utils/shenjack.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Difficult_Rocket/utils/shenjack.py b/Difficult_Rocket/utils/shenjack.py index 5bd05c2..fbef412 100644 --- a/Difficult_Rocket/utils/shenjack.py +++ b/Difficult_Rocket/utils/shenjack.py @@ -361,6 +361,15 @@ if __name__ == "__main__": os.chdir('../../') # 在这里可以使用 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.level = ALL some_logger.warn('aaaa', 'aaaa')