RE: html format - display method?

2002-07-01 Thread Ebersole, Steven
Yes it can output this type of information. It is called LocationInfo in log4j. It is not tied to the Logger class per se. It is really a function of the various layouts (some of which support printing this info, some of which do not). PatternLayout does support this through its different

XMLLayout conversion pattern

2002-07-01 Thread Christian, William
How do I customize the XML log event produced when using the XMLLayout appender? I would like to include additional data as is currently done with the ConversionPattern. However, the ConversionPattern is not supported by the XMLLayout appender. Specifically, I want to output the calling class (%C

RE: XMLLayout conversion pattern

2002-07-01 Thread Thomas Muller
Try to set param name=LocationInfo value=true / for the appender you're using. -- Thomas | -Original Message- | From: Christian, William [mailto:[EMAIL PROTECTED]] | Sent: 01 July 2002 18:26 | To: Log4J Users List | Subject: XMLLayout conversion pattern | | | How

Correction!! (was: RE: XMLLayout conversion pattern)

2002-07-01 Thread Thomas Muller
Perusing the code you can see that you will have to set LocationInfo *for the actual Layout* in order to get class/method/line information. If you're using SMTPAppender you're adviced to set LocationInfo for the appender as well. -- Thomas | -Original Message- | From: Thomas Muller

creating log file for each user

2002-07-01 Thread Saif Khaja
We have our application running on Websphere with log4j 1.1.3. It involves some complicated calculations for each transaction that user performs. Every thing goes on fine except that since there is just one common log file, these calculations log statments get intermingled among different

RE: creating log file for each user

2002-07-01 Thread Thomas Muller
NDC and MDC are lightweith variants of what you want to achieve; that is, you can assign a unique id to each log event (e.g. a username), and filter/sort based on this id when perusing the log. Another alternative is to create/get/restore an Appender programmatically for each individual user.

RE: creating log file for each user

2002-07-01 Thread Ebersole, Steven
I do this exact same thing through JMS logging. I have a User object which acquires a per-instance Logger by doing : Logger.getLogger( session. + getUserName() ). In my config I then have an explicit entry for session which pushes out to the appropriate JMS destination. There is then a

RE: Correction!! (was: RE: XMLLayout conversion pattern)

2002-07-01 Thread Christian, William
Do you have an example you can share? Thanks. -billc -Original Message- From: Thomas Muller [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 2:01 PM To: Log4J Users List Subject: Correction!! (was: RE: XMLLayout conversion pattern) Perusing the code you can see that you will have

Re: number of back up file in RollingFileAppender

2002-07-01 Thread Tim Sawyer
On Mon, 2002-07-01 at 16:41, Rajan Annadurai wrote: How do I set the number of back up files? The default is 2 and I would like to have the option of configuring it. MaxBackupIndex: appender name=A1 class=org.apache.log4j.RollingFileAppender param name=File value=log/toolkit.log/

RE: number of back up file in RollingFileAppender

2002-07-01 Thread Rajan Annadurai
Hi Tim, That is through the configuration file. How do I do it dynamically using the RollingFileAppender in my code? Thanx, Rajan -Original Message- From: Tim Sawyer [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 5:49 PM To: Log4J Users List Subject: Re: number of back up

RE: number of back up file in RollingFileAppender

2002-07-01 Thread Rajan Annadurai
Sorry. I should have been more patient. setMaxBackupIndex(int) http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/RollingFileApp ender.html#maxBackupIndex The method is not listed under the Method Summary but listed under Method Detail. -Original Message- From: Rajan