public void Arguments()
        {
            var logger = new MemoryLogger();

            logger.Debug("{0} {1}", "1", 2);

            Assert.AreEqual(1, logger.Lines.Count);
            Assert.IsTrue(logger.Lines[0].EndsWith("1 2") );
        }
        public void Formatting()
        {
            var logger = new MemoryLogger();

            logger.Debug("regel1");
            Thread.Sleep(10);
            logger.Info("regel2");
            Thread.Sleep(10);
            logger.Error(CreateException());

            Assert.AreEqual(3, logger.Lines.Count);
            Console.WriteLine(string.Join("\n", logger.Lines));
        }
 public EmailErrorLogger(string emailAddress, ISmtpMailConfig config)
 {
     this.emailAddress = emailAddress;
     this.config = config;
     this.allLogLines = new MemoryLogger();
 }