Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Logging / Tracing

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic