Hello
log4j.properties in WEB-INF/classes works when running my classes from
netbeans. The log file is created.
I have log4j-1.2.12.jar in WEB-INF\lib
and in my classes or JSPs I do:
Logger logger = Logger.getLogger(Person.class);
logger.info(foo bar);
But when I run a JSP from tomcat and
-Dlog4j.debug should also tell you how log4j is being configured. Try
to look for messages about that. All log4j messages start with
log4j: at the beginning of the line so you can search for that.
On 10/6/05, John Cherouvim [EMAIL PROTECTED] wrote:
Hello
log4j.properties in WEB-INF/classes
I just downloaded 1.2.12 and tried to use TRACE level. It printed out
but I got a ? mark in both the method name and class name parts of my
pattern layout.
So C and M.
my entire Log4j.xml file is:
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
!-- Make
I think the ? for the method name and class name is probably
independant of using the trace level. It is probably cause by the
classes being compiled without debug info.
On 10/6/05, Harp, George [EMAIL PROTECTED] wrote:
I just downloaded 1.2.12 and tried to use TRACE level. It printed out
but
I actually get the class and method names for the other levels error,
debug, warn,info without any additional flags being set:
06-10-2005 10:50:56 INFO BCConnectionManager gJDBCConnectionInfo
database.minimum.number.of.connections = -1
06-10-2005 10:50:56 INFO BCConnectionManager
This is a known bug; see below...
Original Message
Subject: RE: TRACE location information using PatternLayout (Log4j 1.2.12)
Date: Mon, 26 Sep 2005 19:11:36 +0100
From: Andy McBride [EMAIL PROTECTED]
Reply-To: Log4J Users List log4j-user@logging.apache.org,
[EMAIL PROTECTED]
Thanks paul
-Original Message-
From: Paul Vaillancourt [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 11:19 AM
To: Log4J Users List
Subject: Re: Log4j1.1.12 and TRACE level
This is a known bug; see below...
Original Message
Subject: RE: TRACE location
I have the following log4j.xml file. I've included the salient portions. here
is what i see:
1. i see the logs from logger com.company.a.b.c.f in msglog.log via the
message_appender (info level and above).
2. i see the logs from logger com.company.a.b.d.f in msglog.log via the
Because you forgot the attribute additivity=false
BTW: you should use the new Identifier logger. category is deprecated.
logger name=com.company.a.b.c.f additivity=false
and
logger name=com.company.a.b.d.f additivity=false
Heri
-Original Message-
From: news [mailto:[EMAIL
Isn't there also a way to say only log warn messages? I just don't know
the xml format.
Something to do with a filter?
-Original Message-
From: Bender Heri [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 12:20 PM
To: Log4J Users List
Subject: RE: Log4j Appenders/Category
Hi,
We have one j2ee application with only one ear. We have the log4j.jar at ear
level under lib directory and then we set up LD_LIBRARY_PATH (through WebSphere
- which is done at server scope) to point to that folder so that our utility
jar and war can pick log4j.jar and log4j.properties
Hi
I could successfully write the logging messages to a file when I used
log4j v.1.2.12. But when I'm trying to use v1.3 and the appender as
RollingFileAppender, log file is not getting created. Am I missing
anything regarding the configuration?
Thanks
Vijaya
CONFIDENTIALITY NOTICE: This
what does log4j.properties look like?
Jake
Quoting John Cherouvim [EMAIL PROTECTED]:
Hello
log4j.properties in WEB-INF/classes works when running my classes from
netbeans. The log file is created.
I have log4j-1.2.12.jar in WEB-INF\lib
and in my classes or JSPs I do:
Logger logger =
Quoting Boddapati, Vijaya [EMAIL PROTECTED]:
Hi
I could successfully write the logging messages to a file when I used
log4j v.1.2.12. But when I'm trying to use v1.3 and the appender as
RollingFileAppender, log file is not getting created. Am I missing
anything regarding the configuration?
If the two different log4j.properties files actually log to two distinct
directories, I would guess that either your classpath is set up for both
WebSphere instances to look at only one of those config files. If they are
usin the same config file, they would attempt to write to the same file in
Jake,
Thank you very much.
Actually I'm using similar configuration, but using properties file
instead of xml. Here are the properties I have configured.
log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2.file=../logs/logfile.log
log4j.appender.A2.append=true
Quoting Boddapati, Vijaya [EMAIL PROTECTED]:
Jake,
Thank you very much.
Actually I'm using similar configuration, but using properties file
instead of xml. Here are the properties I have configured.
I see. You'll have to wait for the next release of Log4j-1.3alpha or build from
source
17 matches
Mail list logo