示例#1
0
        public void EscribirLog(Pista element)
        {
            switch (element.Tipo)
            {
            case TipoPista.Debug:
                if (_isDebugEnabled)
                {
                    _localFileWriter.Registrar(element);
                }
                break;

            case TipoPista.Info:
                if (_isInfoEnabled)
                {
                    GuardarLog(element);
                }
                break;

            case TipoPista.Warn:
                if (_isWarnEnabled)
                {
                    GuardarLog(element);
                }
                break;

            case TipoPista.Error:
                if (_isErrorEnabled)
                {
                    GuardarLog(element);
                }
                break;

            case TipoPista.Fatal:
                if (_isFatalEnabled)
                {
                    GuardarLog(element);
                }
                break;
            }
        }
示例#2
0
        public void EscribirEnLocal(string modulo, string msg)
        {
            Pista p = CrearElementoLog(modulo, msg);

            _localFileWriter.Registrar(p);
        }
示例#3
0
        public void EscribirEnLocal(string modulo, Exception exception)
        {
            Pista p = CrearElementoLog(modulo, exception);

            _localFileWriter.Registrar(p);
        }