Exemplo n.º 1
0
		public void CanCreateExtendedLog4NetConfigUsingStream()
		{
			ExtendedLog4netFactory factory;
			using (var stream = StringToStream(log4netConfig.Config))
			{
				factory = new ExtendedLog4netFactory(stream);
			}

			var logger = factory.Create(loggerName);
			logger.Debug(logMessage);

			var logContent = GetLogContent();

			Assert.AreEqual(logMessage, logContent);
		}
Exemplo n.º 2
0
		public ExtendedLog4netLogger(ILogger logger, ExtendedLog4netFactory factory)
		{
			Logger = logger;
			Factory = factory;
		}
Exemplo n.º 3
0
		public ExtendedLog4netLogger(ILog log, ExtendedLog4netFactory factory) : this(log.Logger, factory)
		{
		}
Exemplo n.º 4
0
 public ExtendedLog4netLogger(ILogger logger, ExtendedLog4netFactory factory)
 {
     Logger  = logger;
     Factory = factory;
 }
Exemplo n.º 5
0
 public ExtendedLog4netLogger(ILog log, ExtendedLog4netFactory factory) : this(log.Logger, factory)
 {
 }