Ceki,

Actually I copied the log4j 1.3 long pattern names so I think they should be
roughly in sync. 

The PatternLayout code which binds in the rule names is here:
http://cvs.apache.org/viewcvs.cgi/logging-log4net/src/Layout/PatternLayout.c
s?rev=1.4&view=markup

Look for the static PatternLayout constructor about 3/4 of the way down the
file.

Nicko

> -----Original Message-----
> From: Ceki G�lc� [mailto:[EMAIL PROTECTED] 
> Sent: 25 May 2004 11:15
> To: Log4NET Dev
> Subject: RE: Configuration manual is out-of-date?
> 
> Nicko,
> 
> As you are probably aware, as of log4j 1.3 will also support 
> pattern words and not just pattern characters. Maybe we could 
> coordinate the names...
> 
> 
> At 01:28 AM 5/24/2004, you wrote:
> >Baron,
> >
> >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.
> >
> >The longer pattern names are supported by the latest CVS 
> version of log4net.
> >
> >Of course documentation is not always our strongest point 
> and we would 
> >gratefully accept any help.
> >
> >Nicko
> >
> >
> > > -----Original Message-----
> > > From: Baron Schwartz [mailto:[EMAIL PROTECTED]
> > > Sent: 21 May 2004 16:02
> > > To: [email protected]
> > > Subject: Configuration manual is out-of-date?
> > >
> > > There seems to be out-of-date or incorrect information at 
> > > 
> http://logging.apache.org/log4net/release/manual/configuration.html.
> > > When I tried to use the PatternLayout
> > >
> > > <conversionPattern value="%-4timestamp [%thread] %-5level %logger 
> > > %ndc - %message%newline" />
> > >
> > > I got weird output.  I had to look in the log4j JavaDocs to find 
> > > that, for example, [%thread] needs to actually be [%t].
> > >
> > > I find that these docs don't really have enough 
> information in them; 
> > > I would prefer not to search log4j's docs to find out stuff.  I'm 
> > > happy to help update them as I get time to do so.  One 
> thing I think 
> > > would be great is a simple HTML table of % patterns that 
> are valid 
> > > and what they mean.  Where is this file kept?  Or should I just 
> > > submit a patch?
> > >
> > > Thanks
> > > Baron
> > >
> 
> --
> Ceki G�lc�
> 
>       For log4j documentation consider "The complete log4j manual"
>       ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  
> 
> 

Reply via email to