Java Servlets TOMCAT

Discussion in 'Java' started by ritchie, Mar 2, 2005.

  1. ritchie

    ritchie Guest

    Hi all,

    I am tring to setup log files for my Java servlets.
    I have seen the use of the log() method.
    Is it possible to make the log() method send the message to a specific
    file?
    If not, is there another way around this?

    Kind Regards,
    Ritchie
     
    ritchie, Mar 2, 2005
    #1
    1. Advertising

  2. ritchie

    Juha Laiho Guest

    "ritchie" <> said:
    >I am tring to setup log files for my Java servlets.
    >I have seen the use of the log() method.
    >Is it possible to make the log() method send the message to a specific
    >file?


    See the Tomcat configuration documents for ways to set up loggers in
    Tomcat. If this is not flexible enough, take a look at the Log4j library.
    --
    Wolf a.k.a. Juha Laiho Espoo, Finland
    (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
    PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
    "...cancel my subscription to the resurrection!" (Jim Morrison)
     
    Juha Laiho, Mar 3, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jim
    Replies:
    4
    Views:
    7,060
  2. Jim
    Replies:
    2
    Views:
    885
  3. M
    Replies:
    5
    Views:
    448
    Christophe Vanfleteren
    Sep 20, 2003
  4. Arun Goel

    Servlets & Tomcat problems.

    Arun Goel, Oct 1, 2003, in forum: Java
    Replies:
    2
    Views:
    535
    William Brogden
    Oct 1, 2003
  5. Phil Jarvis
    Replies:
    2
    Views:
    844
    Sudsy
    Jul 7, 2004
Loading...

Share This Page