Re: log4j initialization problem

2007-08-16 Thread Tonny Staunsbrink
Hi All Another way to bundle your log4j.properties is to include it in the framework /application jar and then use the log4j.conifguration system property if you need to change the defaults in teh deployment environment. That way there is no log4j configuration code in the application/framework

log4j initialization problem

2007-08-15 Thread James Cicenia
Hello - I am now getting serious. ;-) I want to use logging and in particular log4j. In my Application constructor I have: String log4jFile = resourceManager().pathURLForResourceNamed (log4j.properties, null, null).toString(); then I have: System.out.println(Log4j file (from .woa): +

Re: log4j initialization problem

2007-08-15 Thread James Cicenia
never mind. On Aug 15, 2007, at 10:22 AM, James Cicenia wrote: Hello - I am now getting serious. ;-) I want to use logging and in particular log4j. In my Application constructor I have: String log4jFile = resourceManager().pathURLForResourceNamed (log4j.properties, null,

Re: log4j initialization problem

2007-08-15 Thread Chuck Hill
On Aug 15, 2007, at 8:22 AM, James Cicenia wrote: Hello - I am now getting serious. ;-) I want to use logging and in particular log4j. In my Application constructor I have: String log4jFile = resourceManager().pathURLForResourceNamed (log4j.properties, null, null).toString(); Try URL

Re: log4j initialization problem

2007-08-15 Thread Steven Mark McCraw
Don't leave us hanging ;-) What was the fix? On Aug 15, 2007, at 12:04 PM, James Cicenia wrote: never mind. On Aug 15, 2007, at 10:22 AM, James Cicenia wrote: Hello - I am now getting serious. ;-) I want to use logging and in particular log4j. In my Application constructor I have:

Re: log4j initialization problem

2007-08-15 Thread James Cicenia
LOL ! I instead used URL, just as Chuck was probably writing his reply. HOWEVER!!! for some reason if I just put a static string in the argument it worked?! i.e. PropertyConfigurator.configure(/blah/blah/blah/log4j.properties) That I don't understand. Best to have it here in the archives.

Re: log4j initialization problem

2007-08-15 Thread Chuck Hill
On Aug 15, 2007, at 9:25 AM, James Cicenia wrote: LOL ! I instead used URL, just as Chuck was probably writing his reply. HOWEVER!!! for some reason if I just put a static string in the argument it worked?! i.e. PropertyConfigurator.configure(/blah/blah/blah/log4j.properties) That I