Пример #1
0
        public BaseExceptionLogger(BaseExceptionLogger next)
        {
            if (next == null)
            {
                throw new ArgumentNullException("next");
            }

            Next      = next;
            next.Prev = this;
        }
        protected virtual FileExceptionLogger CreateFileExceptionLogger(BaseExceptionLogger next = null)
        {
            FileExceptionLogger result;

            var filename = ConfigurationManager.AppSettings["ExceptionLogger.File"];

            if (next == null)
            {
                result = new FileExceptionLogger(filename);
            }
            else
            {
                result = new FileExceptionLogger(filename, next);
            }

            return(result);
        }
Пример #3
0
 public DebugExceptionLogger(BaseExceptionLogger next) : base(next)
 {
 }
 public MemoryExceptionLogger(IMemoryLogger memoryLogger, BaseExceptionLogger next) : base(next)
 {
     MemoryLogger = memoryLogger;
 }
Пример #5
0
 public ConsoleExceptionLogger(BaseExceptionLogger next) : base(next)
 {
 }
 public FileExceptionLogger(string filenameAndPath, string format, BaseExceptionLogger next) : base(next)
 {
     Init(filenameAndPath, format);
 }