Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NX: Error messages in the console

 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used java.util.logging.* API as the logger of the system.
However, I discovered that, in my code, if I use:

The message "xxx" will be shown in the console!
I wonder, does this acceptable? or I must disable the console display, so that the examiner will not see log messages in the console?
Thanks for advice.
Nick.
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nick,
I guess, it is Ok.
You can confire property file of the JRE to let the messages be written in the file. I didn't want to switch off messages statically and I didn't want
to provide any property file for logging configuration. So, I let all messages till level "INFO" be shown in the console (it is standard configuration) and just documented it.
Best,
Vlad
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!