Log Access HTTP and HTTPS in two different file..

Posted on 2005-04-15
Last Modified: 2010-03-04
Hello, just want to know how can i configure my server.xml for logging Access HTTP and HTTPS in two different file..

Question by:jabcoco
    LVL 19

    Accepted Solution

    put as child of every <Host> (HTTP and HTTPS)  element:
            <Logger className="org.apache.catalina.logger.FileLogger"
                     directory="logs"  prefix="hostname_log." suffix=".txt"

    replace prefix attribute value with name of your host, eg:
            <Logger className="org.apache.catalina.logger.FileLogger"
                     directory="logs"  prefix="http_localhost_log." suffix=".txt"

    LVL 10

    Author Comment

    Hum, well, i only have one host defined... that is <Host name="localhost"....
    so all the content of my web application is under /work/Catalina/localhost
    ... so how can i?!?!

    LVL 19

    Expert Comment

    if I undestand correctly you can put <Logger> element as child of any element. eg <Connector>


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now