GeeCON Prague 2014*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes logging question 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 question" Watch "logging question" New topic
Author

logging question

Andy Zhu
Ranch Hand

Joined: May 26, 2004
Posts: 145
Hey, I am using logging for B&S. I have a couple of questions:

1. I am using java.jdk.jre.logging.properties. and modified a couple of attribute inside. When I submit my assignment, how should I avoid to use this properties file (since exam don't allow to manual manipulation). My current strategy is turn it off.

2. I use default file xmlfile format. However, the output log doesn't have an xml header so always results an error. Why does this happen? Or I need to do something with it?

Thanks


--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
Philippe Maquet
Bartender

Joined: Jun 02, 2003
Posts: 1872
Hi Andy,

I don't know the answer for question 2, but for question 1, this one may help: during development you may use a specific logging config file, and test if the corresponding system property is set or not. If it isn't (it will not by your grader), just set the logging config by code.

Regards,

Phil.
[ June 01, 2004: Message edited by: Philippe Maquet ]
Andy Zhu
Ranch Hand

Joined: May 26, 2004
Posts: 145
Hey, Phillipe: thanks for your reply. How do I set logging by code directly? Do you refer me to some link in your reply ("this one") but it is broken?

Thanks.
Philippe Maquet
Bartender

Joined: Jun 02, 2003
Posts: 1872
Hi Andy,

I just fixed the link. Sorry.

Regards,

Phil.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logging question