Hi guys,

I'm configuring log4net programmatically and not using the xml
configuration. I want to be able to add a newline to the header and footer.
How can you do that? I tried %newline, \r,\n, 
 but all in vain.

My code looks like this:

PatternLayout patternLayout = new PatternLayout();
            patternLayout.ConversionPattern = "%date [%thread] %-5level
%logger : %message%newline";
            patternLayout.Header = "%newline****** [Logging Started]
******%n[Date] [Thread ID] [Level] [Logger] : [Log Entry]
";
            patternLayout.Footer = "****** [Logging Stoped]
******
";

Any ideas please?


Thanks beforehand
Andre Cassar

Reply via email to