: VFSLogFilePatternReceiver usage?
You're probably missing ORO or commons-logging in the plugins directory.
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Fri 12/9/2005 7:43 AM
To: Log4J Users List
Subject: Re: VFSLogFilePatternReceiver usage?
Quoting Paul Smith [EMAIL PROTECTED
At 12:10 AM 12/10/2005 +, you wrote:
I have a class A which does DOMConfigurator.configure(file A)
Then in the same JVM class B does DOMConfigurator.configure(file B)
Is this valid?
Would the 2nd iteration overwrite the log config of class A?
Sort of. The configuration is actually
Quoting Robin Clarke [EMAIL PROTECTED]:
The location of the files are:
WEB-INF/lib/log4j-1.2.9.jar
WEB-INF/classes/log4j.properties
What do you mean by default configuration or manual?
default configuration refers to the automatic configuration performed by Log4j
in a static initializer.
LogWeb may be useful to you...
http://www.codeczar.com/products/logweb/
This lets you configure Log4j via a web interface. I've found it quite useful!
Or, actually, if you use a SocketAppender and log everything (or, at least, a
large subset of categories) to DEBUG, you can capture the
First, you only need to post once, and certainly not under two different
threads. Be patient.
It seems to me that you don't have Log4j.jar on both the client and server. You
also should define your logger without transient. static's aren't subject to
serialization in the first place. So,
already. As I said previously, it's already static. I'm
surprised that the VM allows you to define something as both static and
transient. I don't know if it is innocuous or would produce odd behavior?
Jake
Thanks for your anwer :-)
DeMZed
2005/12/8, Jacob Kjome [EMAIL PROTECTED]:
First
At 08:48 PM 12/8/2005 -0500, you wrote:
I know it is available in Chainsaw, but I need to use this in an
enterprise server environment - where no one has a GUI running, but
must look at the log files afterwards.
Is your own desktop not a GUI? What does it matter whether the server has
a GUI?
I feel like I should know this, but having never actually trying the
VFSLogFilePatternReceiver before and trying to set it up now, I realize
that I don't. Here's what I've done
1. Installed latest Webstart version of Chainsaw
2. Created $user.home/.chainsaw/plugins directory
3. Added
Where is log4j.jar and where do you put log4j.properties. To be more
specific, do you have log4j.jar in WEB-INF/lib with log4j.properties in
WEB-INF/classes, or are they in some other location? How is log4j
configured? Default configuration or manual?
Jake
At 01:28 PM 12/7/2005 +,
Quoting Alexander Rohde [EMAIL PROTECTED]:
Hello.
I have several Tomcat webapps running on our server.
This webapps are writing all output to catalina.out.
I think they_re all firing to stdout.
Now, I try to catch that output and write it to an per WEBAPP file.
But, depending on the
I suspect utility code that is performing its own configuration of Log4j
without your knowledge. Or, depending on where Log4j is, it might be
another webapp which is configuring itself that is affecting your
application. If Log4j.jar is in shared/lib or common/lib, and there is no
Yes, Log4j looks for either log4j.properties or log4j.xml (log4j.xml is used in
preference to log4j.properties if both are found) in the default package. If
it exists and Log4j hasn't already been configured, it configures itself. that
said, it is bad practice to add log4j config files in jars,
, is configurable. I'm not so sure
whether it is configurable for the EAR classloaders? I've just never looked
into that.
Jake
Kalohr
On 11/28/05, Jacob Kjome [EMAIL PROTECTED] wrote:
I would look at the release notes between 7.01 and 7.05 to see if there
were any
changes to classloading
I take it you are using Logj4-1.3alpha. Which one? I suggest using the latest
alpha7. However, if you aren't specifically using anything that Log4j-1.2.xx
doesn't already provide, I suggest going with that rather than 1.3alpha builds.
Anyway, 1.3alpha uses itself to log. That means that if
I would look at the release notes between 7.01 and 7.05 to see if there were any
changes to classloading behavior. Does the server contain log4j? Are you
specifically using child-first classloading behavior? If it is parent-first,
then the Log4j.jar instance owned by the server would perform
Looks to me like the Log4j config is pointing to a file at
/email.log. It is unlikely that the Tomcat user has permissions to write
to the root of the file system. Point the log file to another location.
Jake
At 01:52 PM 11/26/2005 -0800, you wrote:
This is not my setup, but I'm charged
another config file.
Jake
Jacob Kjome wrote:
Looks to me like the Log4j config is pointing to a file at
/email.log. It is unlikely that the Tomcat user has permissions to
write to the root of the file system. Point the log file to another
location.
Jake
Ok, looks like they allow for importing an externally set %JAVA_OPTS%
environment variable and place it in-line with the java command. So, set
the following Windows NT/2K/XP environment variable...
JAVA_OPTS=-Dlog4j.repositorySelector=JNDI
You can do this either on the command line of the
First, you can simply use...
-Dlog4j.repositorySelector=JNDI
Second, how do you start up JBoss? I don't use JBoss ATM, but let's say
you start it up with run.bat. I'm assuming here that JBoss' startup
script adds extra parameters that you add on the command line to it to the
java
At 05:11 AM 11/23/2005 +, you wrote:
darshan darshandarshan at gmail.com writes:
Thanx for all the suggestions...
Mr.Ceki has explained abt configuring it in Tomcat but how can this be
done in
JBoss 4.0.2??
I shall be using the tomcat servlet container which is in the path
Log4j-1.3 uses itself for logging. You set the root logger to debug. Given
that, any library that uses log4j or commons-logging wrapping Log4j will log to
the debug level. Try adding...
logger name=org.apache.log4j
level value=WARN/
/logger
That said, it probably makes more
Quoting Chen Jerry [EMAIL PROTECTED]:
Hi All,
I use log4j in my app, expecting messages logged to
${TOMCAT}/webapps/jsp-examples/WEB-INF/classes/mylog.txt,
so I leverage a FileAppender, whose file is set to ./mylog.txt.
When the following code is tested in
Quoting Paul Smith [EMAIL PROTECTED]:
Hi,
This is a mistake on my part. The build of the Chainsaw distro
requires me to also build log4j. If I build that log4j distro
without the proper dependency jars in place then certain optional
parts of log4j (such as the JMS Receiver) don't get
Quoting Darren Hartford [EMAIL PROTECTED]:
Hey all,
Does anyone have some articles, pointers, or even books that talk about
best practices in regard to seperation (or integration) of
container-level logging (Tomcat, Jboss, etc) versus application-level
logging?
Try searching this list and
At 10:51 AM 11/4/2005 -0800, you wrote:
Is there any difference, advantage, etc. by doing
Logger logger = Logger.getLogger(MyClass.class);
versus doing
Logger logger = Logger.getLogger(MyClass.class.getName());
I've seen it both ways in documentation and examples and both seem
At 11:42 AM 11/1/2005 -0500, you wrote:
I m using some code to create dir if it does not exist, in my own appender
If someone can put it in setFile() in log4j code, it would be great!
I believe this is now done in Log4j-1.3, but I'm not 100% sure about
that. I recall there was a discussion
Quoting Preston CRAWFORD [EMAIL PROTECTED]:
Just tried that and it didn't work, unfortunately. It through a
FileNotFoundException during startup of Tomcat.
I bet my Halloween candy that the directory, c:/logs/, didn't exist prior to
starting Tomcat. Log4j doesn't create directories if they
Try copying James' example verbatim. You missed something.
Jake
Quoting Jeremy Whitlock [EMAIL PROTECTED]:
James,
Here is my log4j.conf:
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE log4j:configuration SYSTEM
http://logging.apache.org/log4j/docs/api/org/apache/log4j/xml/log4j.dtd;
Quoting Charith Fernando [EMAIL PROTECTED]:
Hi all,
When I create a FileAppender is there a way to check whether the file was
created as a new file or the appender is using an existing file///
You mean when you create the appender programatically? If you are doing that,
then just check
At 08:32 PM 10/28/2005 -0700, you wrote:
Is this possible? I'd like my log4j.properties to be portable between
Linux and Windows without having to change which one got deployed in ant
or something like that. But I thought I'd ask first. The idea being if
this line...
It all makes complete sense if the Sun appserver is using parent first
classloading. It is easy to work with Log4j in Tomcat for app-specific logging
because Tomcat implements child-first classloading. The server gets its version
of Log4j in the server classpath and the the app gets its version
At 01:40 PM 10/20/2005 +0100, you wrote:
Hi all,
Have decided to go back to first principles after a rather painful 1.3
phase.
If you are new to Log4j, I wouldn't recommend going with alpha
stuff. That said, the next alpha of 1.3 should be much easier to use
because it is far more
Either build from source or wait for the next release. The development
direction for Log4j-1.3 had been to accept incompatibilities between 1.2.xx and
1.3. That changed since alpha6 and a lot was done to make it generally
compatible with 1.2.xx. alpha7 should be out in the not to distant
Quoting Deep Chand [EMAIL PROTECTED]:
Hi,
In log4J, if I change the configuration i.e. increase/decrease the
level of a particular logger or add more appenders/categories in the
config file, then do I have to restart the web server for that setting
to take effect.
Avoid
Quoting Rakesh Patel [EMAIL PROTECTED]:
Hi,
So I change to DOMConfigurator and find that its been deprecated in 1.3.
Ok, so I check the API and now I need to use the JoranConfigurator.
Finding an example is hard and eventually find a testcase in the log4j
cvs repository:
JoranConfigurator
Quoting Deep Chand [EMAIL PROTECTED]:
Hi,
I'm trying to use Log4J for logging. I get the following error during start
up:
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester)
log4j:WARN Please initialize the log4j system properly.
After that it goes in
) - X
INFO [http-8080-Processor25] (index_jsp.java:68) - X
where 'XX' is some other message I logged from index.jsp
Any help?
I am really confused here..
Jacob Kjome wrote:
Why WEB-INF/classes/properties? Are you performing your own manual
configuration, because Log4j's
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
log4j.appender.A2.MaxFileSize=100KB
log4j.appender.A2.MaxBackupIndex=1
I appreciate any more suggestions.
Thanks
Vijaya
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 2:49 PM
To: Log4J Users List
Subject: Re: File is not getting created
Quoting John Cherouvim [EMAIL PROTECTED]:
Hello
I'm pretty new with log4j so excuse me if my question is very basic.
I have managed to setup log4j and call it from a class which I run
directly from Netbeans. I have configured log4j using a log4j.properties
in WEB-INF\classes\properties
that
he's more active again, I would think that they would see the light of day in
Log4j-1.3. But I'll leave the last word on that to Mark. I'm making
assumptions here.
Jake
Scott
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 05, 2005 8:19
Quoting [EMAIL PROTECTED]:
I have a question which has likely been answered (sorry, couldn't find
it): I'm using a UDPAppender so I want to be able to catch exceptions
like UnknownHostException or BindException, but if I do...
log.info(sending UDP message);
and it fails, the Exception is
nner.java:192)
On Oct 4, 2005, at 1:50 PM, Jacob Kjome wrote:
Quoting [EMAIL PROTECTED]:
I have a question which has likely been answered (sorry, couldn't find
it): I'm using a UDPAppender so I want to be able to catch exceptions
like UnknownHostException or BindException, but if I do
Quoting David Thielen [EMAIL PROTECTED]:
First off, many thank yous to James Stauffer for his help!
The problem was that we had log4j.jar in both tomcat/common/lib and
tomcat/webapps/store/WEB-INF/lib. My guess is that all of tomcat except
store used the one and store the other - and so
of two entirely different logging issues.
Any idea when the next release will fix this (no time to build from
source)?
I believe that some of the developers are working on getting a new release out
as we speak!
Jake
Thanks
Rakesh
-Original Message-
From: Jacob Kjome [mailto
Quoting Mark Womack [EMAIL PROTECTED]:
Can we assume that you are using the 1.3 alpha version? You will want to add
configuration to set org.apache.log4j to WARN/ERROR or OFF.
I think at some point, the auto-logging of logger creation internal to Log4j-1.3
in CVS was removed. The current
Quoting David Thielen [EMAIL PROTECTED]:
Hello;
Thank you. I just tried that but any log4j.logger.net settings then get
applied to both.
Yes, of course it does. If you don't want log4j.logger.net settings to apply to
appenders defined in the root logger, then set the logger's
At 06:24 AM 9/20/2005 +, you wrote:
how to start chainsaw viewer on linux
Do you have Java installed on Linux? Does Webstart work on Linux? If so,
then go here...
http://logging.apache.org/log4j/docs/chainsaw.html
click the Launch now link.
Jake
What exactly does this have to do with Log4j? What was the log4j-user list cc'd
on something that seems totally inconsequential to Log4j?
Jake
Quoting Arunkumar Soundararajan [EMAIL PROTECTED]:
Hi
Any updates on this?
Now a days Im getting this error
SAXException: Parsing Error :
Quoting Michael A Chase [EMAIL PROTECTED]:
On Mon, 12 Sep 2005 09:05:18 -0500, Jacob Kjome wrote:
Quoting Michael A Chase [EMAIL PROTECTED]:
Can anyone point me to some way to capture the logging done via
(ServletContext).log() so everything can go through log4j?
Grab
Quoting Michael A Chase [EMAIL PROTECTED]:
I'm not at work now so I don't have the exact version information, but I
don't think it matters much.
We are running a web application under OC4J which provides logging via a
ServletContext com.evermind.http.Application. We've converted all our
Quoting Kalpeshkumar Soni [EMAIL PROTECTED]:
Hi
I am facing a strange problem
1) My log4j jar is in java/lib directory and is loaded by bootstrap loader
2) My log4j.xml is loaded properly
The log4j.log file is created, but the file remains empty
I do not get any errors/exceptions in
I'm not sure why what you have wouldn't work? However, the double backslashes
are unnecesary (and could, possibly, be breaking things). They tie the config
file to a windows box. Just use single forward slashes. This will work on
both Windows and UNIX systems.
BTW, wasn't the point to set
Quoting Konrad Billewicz [EMAIL PROTECTED]:
I'm not sure why what you have wouldn't work? However, the double
backslashes
are unnecesary (and could, possibly, be breaking things). They tie the
config
file to a windows box. Just use single forward slashes. This will work on
both
Just as long as you realize that context.getRealPath() may return null in the
case where the webapp is run directly from the .war file rather than being
unpacked to a directory by the servlet container. The servelet spec allows for
this behavior so you are depending on container-specific, and
Quoting Curt Arnold [EMAIL PROTECTED]:
Unfortunately, the CVS HEAD is not binary
compatible at this time with log4j 1.2.
I'd say it is pretty darned close. It works with LogWeb, which excercises Log4j
internals quite a bit. There's still work to do, but I don't think this is
nearly the
Quoting Nicolas Maujean [EMAIL PROTECTED]:
Hi,
The first log is going in the catalina.out file, whereas I specify log4j
to write it in a file. The other time it does it well, it is just the first
time that it wrote it in the catalina.out
can anyone answer ?
As Yoav mentioned in the
At 10:00 PM 7/20/2005 -0400, you wrote:
For some reason it looks like log.info(...) logs also to System.out. When I
start my application in a console window, these statements log to the log
file and the console? Any way to get it to stop?
Can't begin to tell you until we see your config file.
Try Log4Web, although it is commercial...
http://www.launchsoftware.com/
Alternatively, if you are just interested in manipulating configuration,
then try LogWeb...
http://www.codeczar.com/products/logweb/index.html
Jake
At 02:16 PM 7/11/2005 +0300, you wrote:
Hi all!
I would like to know
You are confusing OS environment variables with Java System environment
variables. If you want to be able to read ${JAVA_HOME} in a Log4j config
file, you will have to set it as a Java System variable. You can do this
programmatically or, maybe even more simply, on the command line
Take a look at the HISTORY file in the docs directory of the 1.2.9
release of Log4j (HISTORY.txt in 1.2.11). If you are looking for
something like a JDiff report, it is sad but true, Log4j-1.2.8 was never
tagged as a release in CVS. However, the source provided with the
distribution of
Getting Tomcat 5.0.28 to use Log4j can be a bit of a feat. Tomcat uses
commons-logging. I can't remember all the details, but I think getting
Tomcat's commons-logging to use Log4j as its logging implementation requires
changing out the commons-logging-api.jar that is loaded in the bootstrap
never written an xml file for log4j ... but i'd like to use xml
rather than property files .
I did however try the 5.5 with log4j.properties file in common/classes
and that did not work ... i will give 5.5 another shot now then .
thanks for your help
cosmin
On 6/29/05, Jacob Kjome [EMAIL
At 03:28 PM 6/28/2005 -0500, you wrote:
java.net.ConnectException: Connection refused: connect
Get's thrown if there is no socket server to connect to. This is with log4j
version 1.2.11 I don't think I experienced said behavior with 1.2.9
I think you should retry with 1.2.9. I'm using it and
You can't have elements in arbitrary order. Read the error message and it
should be obvious
log4j.xml
Log4j:ERROR Parsing error on line 82 and column 23
Log4j:ERROR The content of element type log4j:configuration must match
At 01:18 AM 6/29/2005 +0100, you wrote:
I tried
logger name =org.apache.log4j/
level value =off/
logger/
I'm using 1.3.0alpha6 in WSAD
This gets rid of the statements below generated internally starting with
DEBUG
I need to get rid of the log4j:INFO stuff
is there any way?
Build from
It's pretty clear to me that you are using a custom logger which is loading
its own config file via File IO and not finding it
java.io.FileInputStream.init(FileInputStream.java:66)
at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.j
ava:297)
What version of Log4j are you using now? You spoke about 1.2.9 in the past
tense and 1.2.11 only just came out. I'm guessing you are using
1.3alpha? Seems like a classloader issue where two different versions of
Log4j are being seen by two different classloaders. Check that you only
have
Does C:/bea813/user_projects/domains actually exist? Log4j won't create the
directory for you.
Jake
Quoting Antony [EMAIL PROTECTED]:
Hi everyone,
Iam trying to get this log4J to work with WebLogic Server 8.1 SP3. I
just
want to log certain information to an HTML format file. I
You have set up the root logger to log the info level of all loggers to
appenderSys. Therefore, the appenderSys log file will get info-level logging.
You might try changing the root logger's default level to be something like
warn, or don't add appenderSys to the root logger.
Jake
Quoting
So put log4j.jar and commons-logging.jar in your WEB-INF/lib. Are you having
problems with this setup? It should work fine.
Jake
Quoting Anand Vijay [EMAIL PROTECTED]:
Hi All
How to use log4j with tomcat 4.x and struts? . I would like to log only one
of the webapps..
Regards
Vijay
Message -
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Anand Vijay
[EMAIL PROTECTED]
Sent: Monday, June 13, 2005 7:20 PM
Subject: Re: Using with Struts
So put log4j.jar and commons-logging.jar in your WEB-INF/lib. Are you
having
problems
Quoting Anand Vijay [EMAIL PROTECTED]:
Hi James
Thanks for the reply
I start tomcat through shortcut icons(windows). where do i need to specify
it?
You can add it to an OS system property called CATALINA_OPTS. That will get
added inline with the java command to start Tomcat. So, do...
,
Jitendra
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 7:47 AM
To: Log4J Users List
Subject: RE: Where to set exernal property referred to in
log4j.properties
At 06:00 PM 6/7/2005 +0530, you wrote:
Hi Jacob,
What is autoconfiguration
At 12:06 PM 6/8/2005 +0530, you wrote:
hi List,
Is there any ways I can configure log4j with Apache Jserve (
Legacy deployment) .I have configured jserv.properties wrapper class
and added it to init method but no logs are getting generated
You mean logging for JServ itself or an
. If you are expecting Log4j to create it for you if it doesn't
already exist, you are mistaken. Log4j makes no attempt to create
directories. That is your code's responsibility to do before configuration
takes place.
Jake
Please help.
Regards,
Jitendra
-Original Message-
From: Jacob
You have everything right except for the .*. You are mixing Log4j
concepts with Java import concepts. Try...
log4j.logger.net.sf.ehcache=ERROR, stdout.
Jake
At 11:54 PM 6/5/2005 -0400, you wrote:
Hi
I would like to know how do I set the logger for all classes inside a
package. I would
At 01:37 PM 5/31/2005 +0200, you wrote:
Hi!
We are using log4j in a project with Resin (a tomcat-like application
server). When log4j is trying to write some lines, we are getting some
lines like
log4j:ERROR Attempted to append to closed appender named [SERVICES].
Where services is out
. Just use the config that
the server provides. That way, you won't accidentally blow a previous config
away.
Jake
Regards
Rajiv
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 11:54 PM
To: Log4J Users List
Subject: Re: Log file does
At 12:05 AM 5/22/2005 +, you wrote:
Hi,
I'm a new log4j user. I want to use it in a j2ee web application--however,
I want its
components, packed in separate jars, to use the same logger(s), if
possible.
I've since discovered that if Bar uses a non-static, local, logger, things
work as I
classes in jars that are put in WEB-INF/lib are run in exactly the same
classloader as those in WEB-INF/classes. You need not do all the checking
of appenders and such. In fact, you are probably making bad assumptions on
behavior which is why you only ever see the System.out message.
The thing that confused me was that it seemed like he was saying that there
were two physically separate instances of JBoss being started up. That is,
each in their own JVM. If that were the case, then this issue would be a
bit perplexing. If it is all, ultimately running under a single
the ContextJNDISelector works under JBoss, it would be very simple for someone
to add the extra -D param to JBoss' startup script. I don't know why it
wouldn't work? It works under Tomcat and weblogic. Should work in JBoss.
Jake
-Mark
-Original Message-
From: Jacob Kjome [mailto:[EMAIL
No need to report a bug, since it isn't one. Try doing...
logger name=org.apache.log4j
level value=OFF/
/logger
This should work if one builds from the latest Log4j source.
Jake
Quoting Mark Womack [EMAIL PROTECTED]:
So noted. Would anyone be interested in logging a bug?
Quoting Jitendra Kharche [EMAIL PROTECTED]:
Hi Jacob,
I appreciate your response. Sorry for the delay to reply back since I
was out of the town for last 4 days.
I am sorry, your solution does not fit my requirement as it is. But it
gave me a clue to do it the way I want.
I did it as
configuration. That's what all the indirection is about in J2EE's
configuration scheme; to make things flexible for cases like this.
Jake
Regards,
Jitendra
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 9:09 PM
To: Log4J Users List
Quoting Irving, Dave [EMAIL PROTECTED]:
Hi,
Id like to switch an application over from using legacy logging software
to log4j.
In the application I am logging for, Loggers really can be dynamic (e.g.
plug-ins can be dynamically loaded and unloaded, and should really have
their own logging
all the extra optional stuff.
Jake
On Apr 7, 2005 9:39 AM, Ceki Gülcü [EMAIL PROTECTED] wrote:
At 03:09 AM 4/7/2005, Jacob Kjome wrote:
At 10:37 AM 4/7/2005 +1000, you wrote:
The build system now builds core, and optional jars. If you don't setup
your build.properties correctly
capitalisation for MyClass as you
suggest.
I suppose I could always put my class in a package, which I guess would
work, but I can't find examples of specifying a class in the default
package.
Cheers,
Mick
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: 08 April
Look in Bugzilla. There was some recent activity on this sort of issue. I had
to do with Log4j, JUnit, and the ConsoleAppender not working with some code to
correct it. I haven't looked at the code's validity, but maybe this is the
same issue?
BTW, have you tried forking the JUnit VM? If you
Very proactive. Nicely done!
Jake
Quoting Peter DeGregorio [EMAIL PROTECTED]:
Here is a link to a version of log4j called trace4j which provides a
built-in trace level to log4j
http://home.comcast.net/~pdegregorio/index.html . A detailed how-to will be
provided shortly for anyone inclined
You might want to look into some of the Log4j config web interfaces out
there. Whether you configured Log4j initially via properties or not, Log4j
exposes its API to you. So, you can programmatically modify settings. See
the third party utilities listed on Log4j download page...
Please do your research before making such claims
http://cvs.apache.org/viewcvs.cgi/logging-log4j/src/java/org/apache/log4j/Logger.java?rev=1.29view=markup
http://cvs.apache.org/viewcvs.cgi/logging-log4j/src/java/org/apache/log4j/Category.java?rev=1.95view=markup
Note that will be available
At 09:33 AM 3/25/2005 -0500, you wrote:
Thanks for the reply, James. I agree with you that it wouldn't be
non-standard but since I don't maintain our tomcat implementation I was
looking to see if there might be another way.
Have you looked into using CATALINA_OPTS? Just set said variable as an
The error looks like it is happening at the Tomcat level. This probably means
that commons-logging, which Tomcat uses, is finding Log4j in the classpath and
attempting to use it. Try putting a very simple log4j.xml config file in the
Tomcat common/classes directory (or elsewhere on the
log4j.appender.mail.Append=true
log4j.appender.mail.layout=org.apache.log4j.PatternLayout
log4j.appender.mail.layout.ConversionPattern=%d %-5p - %m%n
Luke
On Tue, Mar 22, 2005 at 03:46:45PM -0600, Jacob Kjome wrote:
Post your config file.
Jake
Quoting Luke Reeves [EMAIL
Quoting Elihu Smails [EMAIL PROTECTED]:
Could you point me to a resource where I could get more information on
how to do this. I don't have much experience with extending Log4J's
classes.
It isn't a matter of extending any classes, but simply using what's available.
I suggest you read the
Post your config file.
Jake
Quoting Luke Reeves [EMAIL PROTECTED]:
I tried that; that makes all log messages (not just mail-related ones)
appear in both files...
Luke
Aswin Asokan wrote:
Try changing
log4j.logger.MailLog=mail
to
log4j.logger.MailLog=DEBUG,mail
Regards,
Is Log4j in WEB-INF/lib or is it only in CATALINA_HOME/common/lib? If the
latter, and if you are manually configuring Log4j upon each webapp load,
then you will be re-configuring the same logger repository multiple times
in the default logger repository; the one which the server itself is
501 - 600 of 688 matches
Mail list logo