Log4net 1.2 beta 8 PatternLayout and PatternParser do not support adding custom conversion characters.
The latest CVS version of log4net's PatternLayout supports adding custom conversions simply by specifying the pattern and converter's type in the config file. If you are not able to build your own version from CVS then the only alternative is to copy the PatternLayout and PatternParser into your own assembly and modify them to add the patterns you need. Then you can specify that layout in the config. Nicko > -----Original Message----- > From: Haliza Hassan [mailto:[EMAIL PROTECTED] > Sent: 06 January 2005 19:34 > To: Log4NET User > Subject: Adding custom conversion chars in PatternLayout > > Hi, > > In log4j, I am able to add custom conversion characters to > PatternLayout by writing classes that extend PatternLayout > and PatternParser. > > Can I do the same in log4net ? How do I add custom conversion chars > without using MDC/NDC ? > > I am using log4net 2.0 beta 8. > > Thank you, > Nik >
