The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

tomcat logs per customer?

Discussion in 'General Discussion' started by big, Dec 25, 2004.

  1. big

    big Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    Hello,

    I was wondering how to make tomcat logs into separated log file for each website? because when i can separate logs i can make the user access his own log dir/files instead me coping thelogs for time every time.


    Thank you.
     
  2. naveen3

    naveen3 Active Member

    Joined:
    Jan 28, 2005
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Hello
    i am also facing same problem, client want to see logs of his application under tomcat.

    -naveen
     
  3. big

    big Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    with tomcat v5.5.2 u can have this by default
     
  4. naveen3

    naveen3 Active Member

    Joined:
    Jan 28, 2005
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    any idea where are the tomcat LOGS located for each site/customer.
    i have tomcat 5.5.7,

    -nav
     
    #4 naveen3, Apr 30, 2005
    Last edited: Apr 30, 2005
  5. big

    big Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    i think you need to add special lines to your server.xml to start logging
    i have those lines
    Code:
            <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_log." suffix=".txt" timestamp="true"/>
    
    and
    Code:
          <Logger className="org.apache.catalina.logger.FileLogger" prefix="catalina_log." suffix=".txt" timestamp="true"/>
    
     
  6. ehpmahesh

    ehpmahesh Well-Known Member

    Joined:
    Jul 3, 2004
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Where i have to add those lines at the bottom of each user entry in server.xml file or on some specific location please explan so that i can update
     
  7. big

    big Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    224
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    should be inside the <Engine> directive
     
Loading...

Share This Page