Concurrent Logging: How?

From: Ravi Shankar (sujashankar_at_pacific.net.sg)
Date: 10/10/04

  • Next message: Daniel Parker: "Re: Concurrent Logging: How?"
    Date: Sun, 10 Oct 2004 08:44:43 +0800
    
    

    Hi all,

    I have an enterprise application. I am using Apache Log4J for the logging
    purposes. WHen a request is received by the application, it goes throug
    servlets and many classes, and the necessary details are logged to files,
    which has autorate option. I mean when certain file exceeds the size,
    automatically another file is generated for a maximum of 10 files and then
    again starts from the first.

    So far is so good. Now assume that say 100 users are concurrently making a
    request. Since servlets are mutithreaded, the logs generated does not show
    each request sequentially. All the logs of all the requests are mixed
    together making it difficult and highly spagettic to read and understand.

    How can I make the logging strategy such that each user request is written
    in a sequential manner so that there are no overlaps of the logs? Please
    advise, thanks

    Best regards,
    Ravi


  • Next message: Daniel Parker: "Re: Concurrent Logging: How?"

    Relevant Pages

    • Concurrent Logging: How?
      ... WHen a request is received by the application, ... Since servlets are mutithreaded, the logs generated does not show ... How can I make the logging strategy such that each user request is written ...
      (comp.lang.java.programmer)
    • Concurrent Logging: How?
      ... WHen a request is received by the application, ... Since servlets are mutithreaded, the logs generated does not show ... How can I make the logging strategy such that each user request is written ...
      (comp.object)
    • Re: Concurrent Logging: How?
      ... I am using Apache Log4J for the logging ... WHen a request is received by the application, ... the logs generated does not show ...
      (comp.lang.java.programmer)
    • Re: Concurrent Logging: How?
      ... I am using Apache Log4J for the logging ... WHen a request is received by the application, ... the logs generated does not show ... queries and filters, for example to order by instead ...
      (comp.object)
    • Re: Concurrent Logging: How?
      ... I am using Apache Log4J for the logging ... WHen a request is received by the application, ... the logs generated does not show ... queries and filters, for example to order by instead ...
      (comp.lang.java)