Logger.getRootLogger() ?? is't static with respect to the JVM ?

2006-09-16 Thread Mansour
Hello every body: I am having some difficulties working with log4j, and I need some help from some one. I am writing a client/server application, in some way it can be compared with a chat client, where two or more users connect to the server through an applet. Now the applets uses classes from

Re: trace( String, Throwable)

2006-09-16 Thread Mansour
I am using logging-log4j-1.3alpha-8 I haven't used any configuration file. I am just following the baby steps, and doing very basic logging. Here' part of my code: In the main class, which is an applet: logger = Logger.getLogger(this.getClass()); logger.addAppender(new FrameAppender(this,"Cont

Re: trace( String, Throwable)

2006-09-16 Thread Jacob Kjome
At 11:23 AM 9/16/2006, you wrote: >I changed it to logger.error, and it worked fine. Now I checked again >the configuration and couldn't find what's wrong. >May be this ?? > >logger.setLevel(Level.ALL); > >but isn't suppose to log all levels ?? >if I am wrong, how do i fix this ?? > Theoreticall

Re: trace( String, Throwable)

2006-09-16 Thread Mansour
I changed it to logger.error, and it worked fine. Now I checked again the configuration and couldn't find what's wrong. May be this ?? logger.setLevel(Level.ALL); but isn't suppose to log all levels ?? if I am wrong, how do i fix this ?? James Stauffer wrote: Try changing it to logger.err

Re: trace( String, Throwable)

2006-09-16 Thread James Stauffer
Try changing it to logger.error(msg, exception). If that works then you probably have your config setup incorrectly. I think trace is between debug and info so you probably need to lower the level. On 9/16/06, Mansour <[EMAIL PROTECTED]> wrote: Hi everybody: I am tring to use logger.trace(msg

trace( String, Throwable)

2006-09-16 Thread Mansour
Hi everybody: I am tring to use logger.trace(msg, exception) but I am getting nothing. Nothing is being logged. I am using in the same way I use logger.info () or logger.debug() . Some thing like this: try{ //do somehting }catch (Exception e) { logger.trace("exception: ",e);} I couldn't fin