Hi,

you could use something like this:


      session = request.getSession();   
      if( session != null ) _log.push( "S" + session.getId() );
.....

      }finally{
          if( session != null) _log.pop();
      }//finally

Manfred Regele 
Dipl. Betriebswirt (BA)
ADIG Investment GmbH
22 Methoden&Tools
Richard-Reitzner-Allee 2
85540 Haar
Tel: 089/46268-308
mailto:[EMAIL PROTECTED]
http://www.adig.de

> -----Ursprüngliche Nachricht-----
> Von:  Thomas Tuft Muller [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Freitag, 28. Dezember 2001 10:32
> An:   Log4J Users List
> Betreff:      SV: Sample usage of NDC in servlets.
> 
> Krishna,
> 
> You can use session-ID or username (if applicable) in conjunction with NDC
> in order to separate log-entries from different sessions.
> 
> --
> 
> Thomas
> 
> 
> | -----Opprinnelig melding-----
> | Fra: Krishna srinivasan [mailto:[EMAIL PROTECTED]]
> | Sendt: 28. desember 2001 09:36
> | Til: Log4J Users List
> | Emne: Sample usage of NDC in servlets.
> |
> |
> | Hi,
> | I'm new to Log4J and just read about usage of NDC.
> | Is there any sample usage of NDC in servlets ?
> | Please share any samples on NDC that you come across.
> |
> | Thanks,
> | Krishna
> |
> |
> |
> |
> |
> |
> | __________________________________________________
> | Do You Yahoo!?
> | Send your FREE holiday greetings online!
> | http://greetings.yahoo.com
> |
> | --
> | To unsubscribe, e-mail:
> | <mailto:[EMAIL PROTECTED]>
> | For additional commands, e-mail:
> | <mailto:[EMAIL PROTECTED]>
> |
> |
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to