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