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?
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
posted
0
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?