Re: MDC cleanup - or other way for session logging

2004-04-26 Thread Ceki Gülcü
At 09:58 AM 4/20/2004, Stefan Preuss wrote: Helo, I'm developing an Web application based on JSP/Servlet/Bean. Up to now I'm using my own logger(s). Now I want to take advantage of log4j. For some simple java tools I changed before, log4j works fine. But in this case I have some trouble with th

Re: MDC cleanup - or other way for session logging

2004-04-26 Thread Ceki Gülcü
At 09:58 AM 4/20/2004, you wrote: Helo, [snip] The application uses a session concept. The user starts with a login page (a servlet) which do some initial stuff. Then, when she entered her name and password the request is send to the menu (JSP) which uses a session bean what does the login. Now

Re: MDC cleanup - or other way for session logging

2004-04-26 Thread Stefan Preuss
At 21:02 23.04.2004, Ceki Gülcü wrote: >At 09:58 AM 4/20/2004, Stefan Preuss wrote: >>Helo, >> >>I'm developing an Web application based on JSP/Servlet/Bean. Up to now I'm using my >>own logger(s). Now I want to take advantage of log4j. >> >>For some simple java tools I changed before, log4j works

Chainsaw v2 - where is QuickRefence and Tutorial?

2004-04-26 Thread Rostislav Svoboda
Hi all i just downloaded and compiled chainsaw. looks fine but i cant find the "QuickRefence and Tutorial viewable from within the GUI" (as promissed on the home page) where can i find it ? thx & EOF Bost PS: of course i learn in trial-error method but recently i realised the RTFM method work

RE: Chainsaw v2 - where is QuickRefence and Tutorial?

2004-04-26 Thread Paul Smith
When you first startup up Chainsaw v2 you are shown the "Welcome" tab. Within that tab, it has it's own mini-toolbar with a "Tutorial" button. You can also get access to the Tutorial through the Help menu cheers, (You did download Chainsaw v2, right?) Paul Smith -Original Message-

RE: Globally MDC.put/remove for hole web application

2004-04-26 Thread James Stauffer
We have a "base servlet" that all other servlets extend and so we do that kind of think in that servlet. James Stauffer -Original Message- From: Stefan Preuss [mailto:[EMAIL PROTECTED] Sent: Monday, April 26, 2004 1:08 AM To: Log4J Users List Subject: RE: Globally MDC.put/remove for ho

setting separate log files for debug,info and error messges log

2004-04-26 Thread Guruprasanth
hi, i need to have a separate log files for error,info and debug for my application.how do i set it in property file of log4j regards guru

Re: setting separate log files for debug,info and error messges log

2004-04-26 Thread Jacob Kjome
Quoting Guruprasanth <[EMAIL PROTECTED]>: > hi, > i need to have a separate log files for error,info and debug for my > application.how do i set it in property file of log4j > > regards > guru http://wiki.apache.org/logging-log4j/Log4JProjectPages/LogByLevel Jake

logging per user

2004-04-26 Thread Srinivas Kotamraju
Hi guys, I am a newbie to log4j. I quickly looked through log4j and it really looks great and I amazed by its flexibility. I am having a web application and I have a bunch of users 20 -25..using it. I would like to be able to have one log file per user..with an option to configure the users in a

RE: logging per user

2004-04-26 Thread James Stauffer
You could do: Logger log = Logger.getLogger(username); Log.info("User: " + username); James Stauffer -Original Message- From: Srinivas Kotamraju [mailto:[EMAIL PROTECTED] Sent: Monday, April 26, 2004 12:45 PM To: [EMAIL PROTECTED] Subject: logging per user Hi guys, I am a newbie to l

RE: logging per user

2004-04-26 Thread Sikha, Naresh
An alternative means would be to use NDC. So your logging methods would look the same as before: private static final Logger logger = Logger.getLogger(TheCurrentClass.class); if (logger.isInfoEnabed()) { ... } But before any logs are created for the current request, identify the curre

RE: logging per user

2004-04-26 Thread Sikha, Naresh
I would work backwards. Unique logs files are created by unique appenders. As far as I know a file appender can only write to a single file; therefore, you require unique appenders for each unique, username based, log file you wish to write to. I believe that such an architecture is resource contst