def note(msg, *args): if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.NOTE: _doLog('NOTE', log.prefix_with_timestamp(msg), args)
def LOG_MEMORY(msg, *args): if CURRENT_LOG_LEVEL & LOG_LEVEL.MEMORY: _doLog('TUTORIAL MEMORY', msg, args)
def LOG_WARNING(msg, *args): if CURRENT_LOG_LEVEL & LOG_LEVEL.WARNING: _doLog('TUTORIAL WARNING', msg, args)
def LOG_WARN(msg, *kargs, **kwargs): if config.get('logLevel', 0) >= 1: _doLog('WARNING', msg, kargs, kwargs)
def LOG_DEBUG(msg, *kargs, **kwargs): if config.get('logLevel', 0) >= 3: _doLog('DEBUG', msg, kargs, kwargs)
def LOG_ERROR_BOOTCAMP(msg, *kargs, **kwargs): kwargs.setdefault('tags', []).append(LOG_TAGS.BOOTCAMP) _doLog('ERROR', msg, kargs, kwargs)
def LOG_BROWSER(msg, *kargs): if _BROWSER_LOGGING and IS_DEVELOPMENT: _doLog('BROWSER', msg, kargs)
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
def __onLogGuiFormat(self, type, msg, *kargs): if type == 'DEBUG' and not constants.IS_DEVELOPMENT: return _doLog('%s.GUI' % str(type), msg % kargs, None)
def __onLogGui(self, type, msg, *kargs): if type == 'DEBUG' and not constants.IS_DEVELOPMENT: return _doLog('%s.GUI' % str(type), msg, kargs)
def error(msg, *args): if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.ERROR: _doLog('ERROR', log.prefix_with_timestamp(msg), args)
def warning(msg, *args): if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.WARNING: _doLog('WARNING', log.prefix_with_timestamp(msg), args)
def LOG_REQUEST(msg, *args): if CURRENT_LOG_LEVEL & LOG_LEVEL.REQUEST: _doLog('TUTORIAL REQUEST', msg, args)
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)
def LOG_STATISTIC(msg, *kargs, **kwargs): kwargs.setdefault('tags', []).append(LOG_TAGS.STATISTIC) _doLog('WARNING', msg, kargs, kwargs)
def LOG_ERROR(msg, *kargs, **kwargs): if config.get('logLevel', 0) >= 0: _doLog('ERROR', msg, kargs, kwargs)
def LOG_DEBUG_BOOTCAMP(msg, *kargs, **kwargs): kwargs.setdefault('tags', []).append(LOG_TAGS.BOOTCAMP) _doLog('DEBUG', msg, kargs, kwargs)
def LOG_INFO(msg, *kargs, **kwargs): if config.get('logLevel', 0) >= 2: _doLog('INFO', msg, kargs, kwargs)
def LOG_DEBUG(msg, *args): if CURRENT_LOG_LEVEL & LOG_LEVEL.DEBUG: _doLog('TUTORIAL DEBUG', msg, args)
def LOG_ERROR(msg, *args): if CURRENT_LOG_LEVEL & LOG_LEVEL.ERROR: _doLog('TUTORIAL ERROR', msg, args)
def debug(msg, *args): if log.CURRENT_LOG_LEVEL <= log.LOG_LEVEL.DEBUG: _doLog('DEBUG', log.prefix_with_timestamp(msg), args)