logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DaneVinson <dane.vin...@gmail.com>
Subject New to log4net. Easy question?
Date Sun, 16 Sep 2012 04:48:12 GMT

/* Code */
protected static readonly ILog Logger =
log4net.LogManager.GetLogger(typeof(Program));
static void Main(string[] args)
{
    Logger.Info("Test line");
    Logger.Info("Test line 2");
    Logger.Info("Test line 3");

/* Appender */
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
  <layout type="log4net.Layout.PatternLayout">
    <conversionPattern value="%date{ABSOLUTE} - %-5level - %message%newline
%exception"/>
  </layout>
</appender>

/* Output */
21:40:26,429 - INFO  - Test line
 21:40:26,441 - INFO  - Test line 2
 21:40:26,441 - INFO  - Test line 3

Why the leading single space on every entry after the first?
-- 
View this message in context: http://old.nabble.com/New-to-log4net.-Easy-question--tp34438289p34438289.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Mime
View raw message