lg.py (615B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\carbon\client\script\util\lg.py 2 import log 3 4 def Info(channel, *etc): 5 Log(channel, log.LGINFO, *etc) 6 7 8 def Notice(channel, *etc): 9 Log(channel, log.LGNOTICE, *etc) 10 11 12 def Warn(channel, *etc): 13 Log(channel, log.LGWARN, *etc) 14 15 16 def Error(channel, *etc): 17 Log(channel, log.LGERR, *etc) 18 19 20 def Log(channel, flag, *blah): 21 sm.GetService('log').Log(channel, flag, *blah) 22 23 24 def _Test(): 25 Info('lgtest', 'this is info') 26 Notice('lgtest', 'this is notice') 27 Warn('lgtest', 'this is warn') 28 Error('lgtest', 'this is error')