Example #1
0
 def e(text = ''):
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_ERROR:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_ERROR, text, callframe)
Example #2
0
 def i(text = ''):
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_INFO:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_INFO, text, callframe)
Example #3
0
 def d(text = ''):
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_DEBUG:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_DEBUG, text, callframe)
Example #4
0
 def w(text = ''):
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_WARNING:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_WARNING, text, callframe)
Example #5
0
 def e(text=""):
     #ERROR
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_ERROR:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_ERROR, text, callframe)
Example #6
0
 def d(text=""):
     #DEBUG
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_DEBUG:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_DEBUG, text, callframe)
Example #7
0
 def i(text=""):
     #INFO
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_INFO:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_INFO, text, callframe)
Example #8
0
 def w(text=""):
     #WARNING
     LogConfig.init()
     if LogConfig.level() >= LOG_LEVEL_WARNING:
         callframe = _getframe(1)
         Log._log(LOG_TYPE_WARNING, text, callframe)