File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Logging / Tracing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Logging / Tracing" Watch "Logging / Tracing" New topic

Logging / Tracing

John Luckcuck

Joined: Apr 18, 2002
Posts: 7
How would logging or tracing be looked upon if it existed within the application. I've started to implement a Logging Facility that can be turned off and on. You can specify STD OUT or a file and you can specify a level of logging (0=off, 1=exceptions, 2=trace, 3=debug).
Has anyone got any comments on this ?

J2EE Web Developer
Colin Froggatt

Joined: Feb 26, 2002
Posts: 10
Hi John, I get the feeling from other posts on this that most people are removing any such logging before submisson. I have a very simple Logger class and I intend to remove the ref's before submission.
However, as long as you can switch it all off and it doesn't make the code unreadable and doesn't violate the command line constraints, I can't see why it should be a problem. I guess like all these things, you just need to note why you have it there in the doc's.
John Luckcuck

Joined: Apr 18, 2002
Posts: 7
Good point, I've decided to take it out, I started spending far to much time deciding what to log and what not to log etc. It was taking my focus away from presenting what wa asked for. I don't believe there's any marks available for extra functionaility - a guy here has got an excellent mark just doing what was required.
I agree. Here's the link:
subject: Logging / Tracing
It's not a secret anymore!