File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes abt log file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "abt log file" Watch "abt log file" New topic
Author

abt log file

kirtesh jain
Ranch Hand

Joined: Nov 15, 2008
Posts: 44
hi ...
in my application i want to create a log file whenever a error occurs and all errors which are cought in try catch block should be transfered to this log file ...
please help me out how can i achive this means how can i creat a log file...
thank you...
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You could have a look at any or all of the following:
  • JDK Logging
  • log4j
  • commons-logging


  • JavaRanch FAQ HowToAskQuestionsOnJavaRanch
    kirtesh jain
    Ranch Hand

    Joined: Nov 15, 2008
    Posts: 44
    thanks for the links...
    it was useful and solved my problem
    thanks a lot...
    Bert Bates
    author
    Sheriff

    Joined: Oct 14, 2002
    Posts: 8764
        
        5
    off to the intermediate forum


    Spot false dilemmas now, ask me how!
    (If you're not on the edge, you're taking up too much room.)
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: abt log file
     
    Similar Threads
    Configuring log4j
    LOG4j-log files
    logging of compile time errors
    logging lifecyle events of servlet
    Log4j configuration question