Thanks. I was afrading of that.
-----Urspr�ngliche Nachricht----- Von: Nicko Cadell [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. November 2004 16:45 An: Log4NET User Betreff: RE: PatternLayout Question The Header and Footer properties of the LayoutSkeleton do not support any form of pattern expansion. If you need to do this you will have to extend the PatternLayout and override the Header and Footer properties to return a string with the data you need. Nicko > -----Original Message----- > From: Muhammed Inam [mailto:[EMAIL PROTECTED] > Sent: 18 November 2004 15:27 > To: Log4NET User > Subject: PatternLayout Question > > Hi, > > > > I've tried to find an answer to my question on the web but no > avail. The thing I'd like to do is having the date and time > values on the "Header" part of the layout. As you can see > from the following code, [%t] won't produce anything as one > might think that it should've worked as same as > "ConversionPattern" value. > > > > Is the output I am trying to have actually possible? > > > > > > <layout type="log4net.Layout.PatternLayout"> > > <param name="Header" value="---=== Log Session Started at > [%t] ===---\r\n"></param> > > <param name="Footer" value="---=== Log Session Ended > ===---\r\n"></param> > > <param name="ConversionPattern" value="%d [%t] %-5p %c > [%x] - %m%n" /> > > </layout> > > > > Thanks, > > > > > > Mit freundlichen Gr��en > > > > Muhammed Inam > > [EMAIL PROTECTED] > > Consultant > > WebOne Informatik GmbH > Berliner Platz 6-8 > 45127 Essen > > Tel +49 (0)201 10 58 3 33 > Fax +49 (0)201 10 58 3 55 > Web www.webone.de <http://www.webone.de/> > > > >
