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
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,
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
static Logger logger = Logger.getLogger(Module.class);
private void sendMailButtonAction()
{
SimpleLayout layout = new SimpleLayout();
FileAppender appender = null;
try
{
String
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
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
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
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
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)
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
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
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
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
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
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,
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:
16 matches
Mail list logo