Пример #1
0
	def note(msg, *args):
		if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.NOTE:
			_doLog('NOTE', log.prefix_with_timestamp(msg), args)
Пример #2
0
def LOG_MEMORY(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.MEMORY:
        _doLog('TUTORIAL MEMORY', msg, args)
Пример #3
0
def LOG_WARNING(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.WARNING:
        _doLog('TUTORIAL WARNING', msg, args)
Пример #4
0
def LOG_MEMORY(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.MEMORY:
        _doLog('TUTORIAL MEMORY', msg, args)
Пример #5
0
def LOG_WARN(msg, *kargs, **kwargs):
    if config.get('logLevel', 0) >= 1:
        _doLog('WARNING', msg, kargs, kwargs)
Пример #6
0
def LOG_DEBUG(msg, *kargs, **kwargs):
    if config.get('logLevel', 0) >= 3:
        _doLog('DEBUG', msg, kargs, kwargs)
Пример #7
0
def LOG_ERROR_BOOTCAMP(msg, *kargs, **kwargs):
    kwargs.setdefault('tags', []).append(LOG_TAGS.BOOTCAMP)
    _doLog('ERROR', msg, kargs, kwargs)
Пример #8
0
def LOG_BROWSER(msg, *kargs):
    if _BROWSER_LOGGING and IS_DEVELOPMENT:
        _doLog('BROWSER', msg, kargs)
Пример #9
0
 def __onLogGuiFormat(self, type, msg, *kargs):
     if type == 'DEBUG' and not constants.IS_DEVELOPMENT:
         return
     else:
         _doLog('%s.GUI' % str(type), msg % kargs, None)
         return
Пример #10
0
 def __onLogGuiFormat(self, type, msg, *kargs):
     if type == 'DEBUG' and not constants.IS_DEVELOPMENT:
         return
     _doLog('%s.GUI' % str(type), msg % kargs, None)
Пример #11
0
 def __onLogGui(self, type, msg, *kargs):
     if type == 'DEBUG' and not constants.IS_DEVELOPMENT:
         return
     _doLog('%s.GUI' % str(type), msg, kargs)
Пример #12
0
	def error(msg, *args):
		if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.ERROR:
			_doLog('ERROR', log.prefix_with_timestamp(msg), args)
Пример #13
0
	def warning(msg, *args):
		if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.WARNING:
			_doLog('WARNING', log.prefix_with_timestamp(msg), args)
Пример #14
0
def LOG_REQUEST(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.REQUEST:
        _doLog('TUTORIAL REQUEST', msg, args)
Пример #15
0
def LOG_CODEPOINT_WARNING_BOOTCAMP(*kargs, **kwargs):
    kwargs.setdefault('tags', []).append(LOG_TAGS.BOOTCAMP)
    _doLog('WARNING', 'this code point should have never been reached', kargs, kwargs)
Пример #16
0
def LOG_BROWSER(msg, *kargs):
    if _BROWSER_LOGGING and IS_DEVELOPMENT:
        _doLog('BROWSER', msg, kargs)
Пример #17
0
def LOG_STATISTIC(msg, *kargs, **kwargs):
    kwargs.setdefault('tags', []).append(LOG_TAGS.STATISTIC)
    _doLog('WARNING', msg, kargs, kwargs)
Пример #18
0
def LOG_ERROR(msg, *kargs, **kwargs):
    if config.get('logLevel', 0) >= 0:
        _doLog('ERROR', msg, kargs, kwargs)
Пример #19
0
def LOG_DEBUG_BOOTCAMP(msg, *kargs, **kwargs):
    kwargs.setdefault('tags', []).append(LOG_TAGS.BOOTCAMP)
    _doLog('DEBUG', msg, kargs, kwargs)
Пример #20
0
def LOG_INFO(msg, *kargs, **kwargs):
    if config.get('logLevel', 0) >= 2:
        _doLog('INFO', msg, kargs, kwargs)
Пример #21
0
def LOG_DEBUG(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.DEBUG:
        _doLog('TUTORIAL DEBUG', msg, args)
Пример #22
0
def LOG_DEBUG(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.DEBUG:
        _doLog('TUTORIAL DEBUG', msg, args)
Пример #23
0
def LOG_WARNING(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.WARNING:
        _doLog('TUTORIAL WARNING', msg, args)
Пример #24
0
def LOG_ERROR(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.ERROR:
        _doLog('TUTORIAL ERROR', msg, args)
Пример #25
0
def LOG_ERROR(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.ERROR:
        _doLog('TUTORIAL ERROR', msg, args)
Пример #26
0
def LOG_REQUEST(msg, *args):
    if CURRENT_LOG_LEVEL & LOG_LEVEL.REQUEST:
        _doLog('TUTORIAL REQUEST', msg, args)
Пример #27
0
	def debug(msg, *args):
		if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.DEBUG:
			_doLog('DEBUG', log.prefix_with_timestamp(msg), args)