wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Logging / Tracing" Watch "Logging / Tracing" New topic
Author

Logging / Tracing

John Luckcuck
Greenhorn

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
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Logging / Tracing
 
Similar Threads
Tracing and Logging in Java SE
Turn off Struts loging.
Log files: Websphere
Unable to initialize Websphere Application Server for tracing and logging
instanceof OR ClassCastException