RE: LOG4J messages printing twice

2005-10-24 Thread Charith Fernando
I think the problem is the class gets called twice so the logger gets initialized twice.. how can I solve this problem. Thank you, Regards, Charith I. Fernando +94 77 3263222 (Mobile) -Original Message- From: Charith Fernando [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005

RE: LOG4J messages printing twice

2005-10-24 Thread Charith Fernando
static Logger logger = Logger.getLogger(MessageSenderBean.class); this is the code that I use to initialize the logger. Thank you, Regards, Charith I. Fernando +94 77 3263222 (Mobile) -Original Message- From: Charith Fernando [mailto:[EMAIL PROTECTED] Sent: Monday, October 24,

Removing log4j messages from my logs

2005-10-24 Thread Vladimir Corovic
Hello, How can I remove log4j start messages from my logs? I checked many sites, as well as official manual, but I didn't succeed. I tried with setting log4j.debug = false in my config file, but that doesn't work. Tanks in forward, Vlado

RE: LOG4J messages printing twice

2005-10-24 Thread Charith Fernando
static Logger logger = Logger.getLogger(Module.class); private void sendMailButtonAction() { SimpleLayout layout = new SimpleLayout(); FileAppender appender = null; try { String

problem: object is not assignable to...

2005-10-24 Thread bastien . pigeyre
Hi, I have this problem using log4j: [CODE] [24/10/05 09:53:20:684 CEST] 18429089 SystemErr R log4j:ERROR A org.apache.log4j.ConsoleAppender object is not assignab le to a org.apache.log4j.Appender variable. [24/10/05 09:53:20:684 CEST] 18429089 SystemErr R log4j:ERROR Could not

problem: object is not assignable to...

2005-10-24 Thread bastien . pigeyre
Hi, I have this problem using log4j: [CODE] [24/10/05 09:53:20:684 CEST] 18429089 SystemErr R log4j:ERROR A org.apache.log4j.ConsoleAppender object is not assignab le to a org.apache.log4j.Appender variable. [24/10/05 09:53:20:684 CEST] 18429089 SystemErr R log4j:ERROR Could not

RE: LOG4J messages printing twice

2005-10-24 Thread Bender Heri
Hallo A static member is initialized only once, at the time when the class first time is loaded. Beside that, the call to Logger.getLogger( xyz ) delivers always the same instance of the logger xyz. You can call this as much as you like. The logger repository is built new on every restart of

RE: Log4j not working

2005-10-24 Thread Rakesh Patel
Hi, I'm guessing that log4j as an external third-party jar needs to be given permission in a web container environment to do things like send emails and write to the file system(?). If so, can anyone tell me how to grant these privileges? Thanks Rakesh -Original Message- From: Rakesh

RE: LOG4J messages printing twice

2005-10-24 Thread Charith Fernando
Lets say I have a program that logs information when u click the button... I have given the name of the class which contains the button to the logger... and each time I press the key the number of times it logs increases by one... Thank you, Regards, Charith I. Fernando +94 77 3263222 (Mobile)

RE: LOG4J messages printing twice

2005-10-24 Thread Bender Heri
Do you mean: - start program - press button - - one log entry on console - press button again - - two more entries - press button again - - three more entries - now you have 6 entries? This sounds very strange... Heri -Original Message- From: Charith Fernando [mailto:[EMAIL

RE: LOG4J messages printing twice

2005-10-24 Thread Bender Heri
Ah, now I see. The code which you posted: static Logger logger = Logger.getLogger(Module.class); private void sendMailButtonAction() { SimpleLayout layout = new SimpleLayout(); FileAppender appender = null; try

Re: problem: object is not assignable to...

2005-10-24 Thread shy guy
Are you using programatic configuration for log4j? if yes try automatic one do you have multiple log4j jars in ur server? like /WebSphere/AppServer/java/lib , /WebSphere/AppServer/lib, WEB-INF/lib ? try to keep only one Let us know how u r using log4j ks

stderr, stdout appender

2005-10-24 Thread Tomasz Zdych
I want to send the DEBUG-INFO messages to standard out and WARNING-FATAL messages to standard error. I use this config: log4j.rootCategory = DEBUG, stderr, stdout # stdout appender log4j.appender.stdout= org.apache.log4j.ConsoleAppender log4j.appender.stdout.Threshold=DEBUG

Réf. : Re: problem: object is not assignable to ...

2005-10-24 Thread bastien . pigeyre
thanks for answer me shy guy. I look further my configuration and I get a log4J1.2.3 in the ear... I removed it and it works fine now. shy guy

Re: Removing log4j messages from my logs

2005-10-24 Thread James Stauffer
Can you post the exact messages that you want to remove and a snipet from your config file showing how you set debug to false? On 10/24/05, Vladimir Corovic [EMAIL PROTECTED] wrote: Hello, How can I remove log4j start messages from my logs? I checked many sites, as well as official manual,

RE: LOG4J messages printing twice

2005-10-24 Thread Charith Fernando
Hi... Thanks for the help.. it was the appender which has got registered more than once.. Thank you, Regards, Charith I. Fernando +94 77 3263222 (Mobile) -Original Message- From: Bender Heri [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 5:47 PM To: Log4J Users List Subject: