public void LogDebug(LoggingTypeModel.LogCategory logCategory, string message)
        {
            if (!LoggingLevelEnabled.Decide(LoggingLevel).Debug)
            {
                return;
            }

            _logger.Write("DEBUG", logCategory, message, DateTime.Now);
        }
        public void LogError(LoggingTypeModel.LogCategory logCategory, string message)
        {
            if (!LoggingLevelEnabled.Decide(LoggingLevel).Error)
            {
                return;
            }

            _logger.Write("ERROR", logCategory, message, DateTime.Now);
        }
        public void LogInfo(LoggingTypeModel.LogCategory logCategory, string message)
        {
            if (!LoggingLevelEnabled.Decide(LoggingLevel).Info)
            {
                return;
            }

            _logger.Write("INFO", logCategory, message, DateTime.Now);
        }
Пример #4
0
        public void LogInfo(LoggingTypeModel.LogCategory logCategory, Exception exception)
        {
            if (!LoggingLevelEnabled.Decide(LoggingLevel).Info)
            {
                return;
            }

            _logger.WriteToErrorLog("INFO", logCategory, GenerateError.GetException(exception), DateTime.Now);
        }
        public void LogDebug(LoggingTypeModel.LogCategory logCategory, Exception exception)
        {
            if (!LoggingLevelEnabled.Decide(LoggingLevel).Debug)
            {
                return;
            }

            _logger.Write("DEBUG", logCategory, GenerateError.GetException(exception), DateTime.Now);
        }
        public void LogInfo(LoggingTypeModel.LogCategory logCategory, string message)
        {
            if (!LoggingLevelEnabled.Decide(LoggingLevel).Info)
            {
                return;
            }

            _logger.Write("INFO", logCategory, AllowedCharacters.Replace(message), DateTime.Now);
        }
Пример #7
0
        public void LogDebug(LoggingTypeModel.LogCategory logCategory, string message)
        {
            if (!LoggingLevelEnabled.Decide(LoggingLevel).Debug)
            {
                return;
            }

            _logger.WriteToErrorLog("DEBUG", logCategory, AllowedCharacters.Replace(message), DateTime.Now);
        }
Пример #8
0
        public void LogDebug(LoggingTypeModel.LogCategory logCategory, string message)
        {
            CheckArchive();

            if (!LoggingLevelEnabled.Decide(LoggingLevel).Debug)
            {
                return;
            }

            SetupLogLocation();
            _loggingFile.WriteToErrorLog("DEBUG", logCategory, message, DateTime.Now);
        }
Пример #9
0
        public void LogDebug(LoggingTypeModel.LogCategory logCategory, Exception exception)
        {
            CheckArchive();

            if (!LoggingLevelEnabled.Decide(LoggingLevel).Debug)
            {
                return;
            }

            SetupLogLocation();
            _loggingFile.WriteToErrorLog("DEBUG", logCategory, GenerateError.GetException(exception), DateTime.Now);
        }
        public void LogInfo(LoggingTypeModel.LogCategory logCategory, string message)
        {
            CheckArchive();

            if (!LoggingLevelEnabled.Decide(LoggingLevel).Info)
            {
                return;
            }

            SetupLogLocation();
            _loggingFile.Write("INFO", logCategory, message, DateTime.Now);
        }