File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes What is a Logger Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What is a Logger" Watch "What is a Logger" New topic

What is a Logger

madhup narain
Ranch Hand

Joined: Dec 14, 2004
Posts: 148
Can someone tell me what a logger is ?
There is material on the net but its way too vast.
Can someone demonstrate to me using a 10 line program how
logging would be done?


Money for nothing and Java for Free
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

I suggest you read the JavaDocs for this class.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Joe Ess

Joined: Oct 29, 2001
Posts: 9190

The Logging API Overview has some examples.

[How To Ask Questions On JavaRanch]
Dale Seng
Ranch Hand

Joined: Mar 22, 2004
Posts: 275
Someone who cuts-down trees for a living
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Apache's Log4j is pretty popular among open source community. I've been using it for about six months already. They got pretty good documentation and you can find other resources related to Log4j easily as well.

Co-author of SCMAD Exam Guide, Author of JMADPlus
I agree. Here's the link:
subject: What is a Logger
It's not a secret anymore!