File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Two logging questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Two logging questions" Watch "Two logging questions" New topic
Author

Two logging questions

Mogens Nidding
Ranch Hand

Joined: Mar 08, 2004
Posts: 77
Hi! Does anyone have a suggestion for "delivering" the logging aspect of the SCJD?

I am getting to the point where I want to finish up the assignment and send it out the door. I did some logging on the server side to help myself. In addition, whenever my GUI catches an exception, it logs the stack trace and displays an error dialog along the lines of "could not book this and that contractor, log file may include details".

Do you think this approach of referring to a logged exception from an error dialog is acceptable? It has the advantage of sheltering non-technical users from having to look at the arbitrarily complex jibberish that might be in an exception message.

The other concern I have is that there is a requirement saying that everything that is configurable must be so from the GUI and persist its settings in suncertify.properties - and at this point, I don't want to make it more configurable than absolutely needed, since it's just adding "more of the same" to my config GUI/model. What is the minimum thing I can do that is still decent?

Among the things I am considering is hardcoding the logging configuration to outputting INFO to the console.
[ October 09, 2004: Message edited by: Nicky Bodentien ]
Anton Golovin
Ranch Hand

Joined: Jul 02, 2004
Posts: 476
Originally posted by Nicky Bodentien:
Hi! Does anyone have a suggestion for "delivering" the logging aspect of the SCJD?

I am getting to the point where I want to finish up the assignment and send it out the door. I did some logging on the server side to help myself. In addition, whenever my GUI catches an exception, it logs the stack trace and displays an error dialog along the lines of "could not book this and that contractor, log file may include details".

Do you think this approach of referring to a logged exception from an error dialog is acceptable? It has the advantage of sheltering non-technical users from having to look at the arbitrarily complex jibberish that might be in an exception message.

The other concern I have is that there is a requirement saying that everything that is configurable must be so from the GUI and persist its settings in suncertify.properties - and at this point, I don't want to make it more configurable than absolutely needed, since it's just adding "more of the same" to my config GUI/model. What is the minimum thing I can do that is still decent?

Among the things I am considering is hardcoding the logging configuration to outputting INFO to the console.

[ October 09, 2004: Message edited by: Nicky Bodentien ]



Hi, Nicky!

My project provides three lines in the suncertify.properties file:

canonical path to the local db file
url to the remote data source (all, including the remote object name)
canonical path to the server db file


Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Mogens Nidding
Ranch Hand

Joined: Mar 08, 2004
Posts: 77
Thanks, Anton!

So did you hardcode your logging configuration? Or did you just not use logging?
 
jQuery in Action, 2nd edition
 
subject: Two logging questions
 
Similar Threads
NX: Logging and Alain Trottier book
GUI Design
NX: Graphical server mode UrlyBird
Unreported exception
Passed SCJD with 400/400