File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "abt log file" Watch "abt log file" New topic

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

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

    Joined: Oct 14, 2002
    Posts: 8898
    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:
    subject: abt log file
    It's not a secret anymore!