public LoggingViewModel(IMemoryLogger memoryLogger)
 {
     _memoryLogger = memoryLogger;
     _memoryLogger.Log(nameof(LoggingViewModel), "Hello world, this is a test");
     _memoryLogger.Log(
         source: nameof(LoggingViewModel),
         payload: new[] { "Hello world", "this is a test" },
         eventType: TraceEventType.Information,
         title: "test");
 }
 public MemoryExceptionLogger(IMemoryLogger memoryLogger, BaseExceptionLogger next) : base(next)
 {
     MemoryLogger = memoryLogger;
 }
        public static IExceptionLogger GetChain(IConnectionStringProvider constrProvider, IMemoryLogger memoryLogger)
        {
            var _null   = new NullExceptionLogger();
            var _memory = new MemoryExceptionLogger(memoryLogger, _null);
            var _sql    = new SqlServerExceptionLogger(constrProvider, _memory);
            var result  = new ElmahExceptionLogger(_sql);

            return(result);
        }
 public MemoryExceptionLogger(IMemoryLogger memoryLogger)
 {
     MemoryLogger = memoryLogger;
 }
 public DefaultRequestLogger(IMemoryLogger memoryLogger)
 {
     _memoryLogger = memoryLogger;
 }