• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

logging question

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andy,

I just fixed the link. Sorry.

Regards,

Phil.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic