Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logging question

 
Andy Zhu
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andy,

I just fixed the link. Sorry.

Regards,

Phil.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic