Dave,

The list of patterns that the PatternLayout accepts are documented in the
log4net-sdk. In the log4net download this is under the doc\sdk directory.
See the log4net.Layout.PatternLayout class documentation for details.

You can specify the format string passed to DateTime.ToString() in the
pattern, for example to print just the time use:

%d{HH:mm:ss}
 
Cheers,
Nicko

> -----Original Message-----
> From: David Elliott [mailto:[EMAIL PROTECTED] 
> Sent: 24 May 2004 20:23
> To: [email protected]
> Subject: Formatting
> 
> Where are the definitions for the formatters such as %d [%t] 
> %-5p %c [%x] - %m%n
> 
> I know that %d is a date, how would I change the format to 
> display just the time and no date?
> 
> Thanks,
> Dave
> 
> _________________________________________________________________
> Stop worrying about overloading your inbox - get MSN Hotmail 
> Extra Storage! 
> http://join.msn.click-url.com/go/onm00200362ave/direct/01/
> 

Reply via email to