Ejemplo n.º 1
0
        public void LogFailedQuery(string description)
        {
            if (!IsFailedQueriesLoggingEnabled)
            {
                return;
            }
            ILogMessage logMessage = GetRawMessage();

            logMessage.Description    = description;
            logMessage.LogMessageType = LogMessageTypeEnum.FailedQuery;
            LogMessageAriseAction?.Invoke(logMessage);
        }
Ejemplo n.º 2
0
        public void LogError(string description)
        {
            if (!IsErrorsLoggingEnabled)
            {
                return;
            }
            ILogMessage logMessage = GetRawMessage();

            logMessage.Description    = description;
            logMessage.LogMessageType = LogMessageTypeEnum.Error;
            LogMessageAriseAction?.Invoke(logMessage);
        }