I was reading the Log4j manual and it suggests that for each webapp, you
should use a separate log4j jar file in each WEB-INF/lib to make sure that
each log4j is in its own log4j Universe. However, this puts constraints
on where I put my libraries that use log4j. For instance, if I have
on this subject in my log4j book. Remind me
CG to send you a free copy when it comes out.
CG At 07:51 30.05.2002 -0500, Jacob Kjome wrote:
I was reading the Log4j manual and it suggests that for each webapp, you
should use a separate log4j jar file in each WEB-INF/lib to make sure that
each log4j is in its
Hello Peter,
Well, here's an example that I added to the open source Barracuda project (
http://barracuda.enhydra.org/ ). I'm attaching a zip file that
includes the web.xml and the Log4jInit servlet that the Barracuda
project uses. The nice thing with this servlet is that is sets up
Log4j
What does one do during configuration of Log4j? For instance, when
one calls PropertyConfigurator.configure(file) or
PropertyConfigurator.configureAndWatch(file), what kind of logging is
available to see what is happening during this? Do you just bite but
bullet and do
of debug set to true or
TTM not. All Log4j messages to System err/out are prefixed with 'LOG4j:'
TTM Hope this helps.
TTM --
TTM Thomas
TTM | -Original Message-
TTM | From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
TTM | Sent: 10 June 2002 19:03
TTM | To: Log4J Users List
TTM | Subject: Logging
is also available in the LogLog class, but it requires that you
MC configure the logging system as mentioned in a previous reply in order for
MC debug messages to be output.
MC Marvin
MC -Original Message-
MC From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
MC Sent: Monday, June 10, 2002 2:31 PM
Hello Scott,
How exactly would that work? Doesn't configureAndWatch() require a
full file path? url.getFile() only returns the filename part of the
URL. How does configureAndWatch() know where to find this file? Am I
missing something?
Jake
Wednesday, June 12, 2002, 3:44:48 PM, you wrote:
Hi,
I am getting duplicated debugging output for every single debug
statement. I've seen a few other messages like this on the list, but
either a solution was not given or I just didn't understand the solutions
provided. Below is some sample output. This happens in both the
Can someone please address this issue? If the answer is I have no idea
why, I've never ever heard of such an issue, then please state
that. However, I have seen this issue in the archives and it hasn't been
answered satisfactorily yet.
See:
=A2/
CG/root
CG /log4j:configuration
CG At 15:38 14.06.2002 +0200, you wrote:
Jacob Kjome wrote:
It is very likely that the duplicates are entirely my fault, but I can't
see how. Can someone point it out to me?
Try setting the additivity flag to false; like this:
logger name=jgroup
| -Original Message-
TTM | From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
TTM | Sent: 14 June 2002 15:57
TTM | To: Log4J Users List
TTM | Subject: Re[2]: duplicate debugging output?
TTM |
TTM |
TTM | Hello Ceki,
TTM |
TTM | How is your example different than the one I used? The only thing you
TTM
and the Javadoc are your best source for help.
TTM --
TTM Thomas
TTM | -Original Message-
TTM | From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
TTM | Sent: 14 June 2002 16:26
TTM | To: Log4J Users List; [EMAIL PROTECTED]
TTM | Subject: Re[4]: duplicate debugging output?
TTM |
TTM |
TTM | Hello Thomas
Hi,
I'm not sure if this is an issue I should be bringing up here or on
the Tomcat-user list, but here goes...
I am using Tomcat-4.1.3 and taking advantage of the new Ant tasks
which hook up to Tomcat's manager app to dynamically install and
remove applications. This works great and log4j
,
Jake
Tuesday, June 25, 2002, 1:53:41 PM, you wrote:
SI Try catching the deploy in the destroy of the servlet and do the
SI log4j.shutdown. This would release the resource held by this jar file and
SI you would be able to perform your operation.
SI Swami
-Original Message-
From: Jacob
, 2002, 2:45:55 PM, you wrote:
SI I think there is a LogManager.shutdown().
SI Swami
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: June 25, 2002 3:40 PM
To: Log4J Users List
Subject: Re[2]: stopping logging after removing context in Tomcat
problem
destroy method
called even though it was
initialized.
Looks like I'll have to write a ServletContextListener or something.
Jake
Tuesday, June 25, 2002, 2:45:55 PM, you wrote:
SI I think there is a LogManager.shutdown().
SI Swami
-Original Message-
From: Jacob Kjome [mailto:[EMAIL
I have the same issue with Tomcat without the whole dll thing. I can use
the manager to install my app and then use it to remove the app. Every
library is released except for log4j.jar so I can't do a clean build. I
can work around it, but it is very annoying. only after I do a full
Check out the way I set things up for Barracuda, a Servlet Presentation
Framework.
http://barracuda.enhydra.org/software/downloads/barracuda-1.1.0.zip
docs are here
http://barracuda.enhydra.org/cvs_source/Barracuda/index_details.html
Basically, it uses a Log4jInit servlet which loads on
Hello Louis,
Should be something like:
logger name=my.package.name.ClassName
level value=off/
/logger
same would go for root:
root
level value=off/
appender-ref ref=MyAppender/
/root
However, I haven't actually tested this.
Jake
Wednesday, July 17, 2002, 12:19:19 PM, you
Can someone please comment on my question below?
thanks,
Jake
Wednesday, July 17, 2002, 3:26:19 PM, you wrote:
JK Hi,
JK I have seen some cases where loggers are defined as public, some as
JK protected, some as private, and some as the default package level
JK visibility. Along the same
private static Logger logger =
Logger.getLogger{MyClass.class.getName());
JK Jake
JK Thursday, July 18, 2002, 4:23:30 PM, you wrote:
KST I usually add transient - just for good measure
KST -Original Message-
KST From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
KST Sent: Thursday, July 18
Hello Max,
I don't know about a definitive guide, but this is one possible way of
doing things:
StringWriter sw = new StringWriter();
ex.printStackTrace(new PrintWriter(sw));
logger.error( + sw);
Jake
Wednesday, July 24, 2002, 7:30:39 AM, you wrote:
MRA Hi,
MRA Looking in the archives i
What's weird is that if the escaped backslashes are needed, why does
the file get written to in the first place? Log4j , obviously, finds
the file and is able to write to it. The Append thing doesn't, on
the face of it, seem like it should be related to using escaped
backslashes or not.
A
You can refer to dynamic variables in your config file after having set
them dynamically by your initialization code...
appender name=A2 class=org.apache.log4j.FileAppender
param name=File value=${Barracuda.log.home}/main.log /
param name=Append value=false /
layout
This issue has been brought up before with no response
I use Tomcat-4.1.11 and the manager app to install/remove | deploy/undeploy
| start/stop my webapp which contains log4j-1.2.6.jar in WEB-INF/lib. What
I'd like to be able to do is uninstall or undeploy the webapp and run a
clean
Can someone in-the-know please comment on this?
This is my last major build problem. It really gets in the way because if
I test my app in Tomcat (haven't tried other servers) and then need to shut
the app down and rebuild after making some changes, I can't clean up the
build because
Hi Ceki,
Nope, we aren't using anything fancy like NTEventLogAppender.
I'll attaching everything that we use in our webapp related to log4j so
that you can see everything that is going on. Note, we are using
log4j-1.2.6.
thanks,
Jake
At 08:29 AM 9/24/2002 +0200, you wrote:
Are you using
BTW, the attachment is a .zip file. Just save it as whatever.zip and
you should be able to open it. Don't know why the extension got
mangled so bad?
BTW, would using configureAndWatch() be the problem? I'll test in a
second. We use that by default. I'll post back with my results to
running
Hello Jacob,
After testing with and without using configureAndWatch(), I am sorry
to say that I get the same behavior. The lo4j.jar is still locked
until I shut down the whole Tomcat server. Shutting down the current
webapp releases *all* resource except log4j.jar.
Any suggestions?
Jake
Hello Ceki,
I'm using log4j-1.2.6. I just tested the app after commenting out the
load-on-startup line for the log4j-init servlet in the web.xml. log4j.jar is *not*
locked
after shutting down the application. I don't have to shut down the
server to release the resource in this case.
Jake
=103287412303294q=p6
Jake
Tuesday, September 24, 2002, 3:52:44 PM, you wrote:
MW Maybe this has already been discussed...but what does your log4j init
MW servlet look like? Can you post the code?
MW -Mark
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24
What I did was use a dynamic variable which is expected to be set at
runtime. However, I use an xml config file. Not sure if you
can do this with a properties file
Anway, I set up my FileAppender with something like this:
appender name=A2
class=org.apache.log4j.FileAppender
param
name=File
I trying to set up a repository selector based on Ceki's doc
http://qos.ch/containers/sc.html .
I put the CRS class in $TOMAT_HOME/shared/lib and added the following to my
Log4jInit class before running any configurator:
Object guard = new Object();
LogManager.setRepositorySelector(new
No one else has set up a repository selector? hmm Can someone please
comment on below? Thanks
Jake
At 10:23 AM 10/15/2002 -0500, you wrote:
I trying to set up a repository selector based on Ceki's doc
http://qos.ch/containers/sc.html .
I put the CRS class in $TOMAT_HOME/shared/lib
I am very interested in learning how you implemented you
RepositorySelector. I posted a question about this the other day but got
no response. I put the RespostorySelector described by Ceki's article in
$CATALINA_HOME/shared/lib and inited it as he described my my app's
Log4jInit servlet.
I'm not positive this is the reason for your issue, but there have been
some recent bugs reported on Log4j and Tomcat about problems using the
Xerces-2.2.0 XML parser. You may want to try using the Xerces-2.1 or 2.0.2
parser and see if your problem goes away.
Jake
At 07:17 PM 10/18/2002
?
OK, hope it helps...
-don
At 10:25 PM 10/17/2002 -0500, Jacob Kjome wrote:
I am very interested in learning how you implemented you
RepositorySelector. I posted a question about this the other day but got
no response. I put the RespostorySelector described by Ceki's article
Hello David,
If you want an example of a LoggerRepositorySelector, check out the
one I did in the Barracuda open source presentation layer project. It
works under Tomcat, but really should work anywhere where there are
separate classloaders for applications.
Hello Sean,
Is that the most recent source for DOMConfigurator? Ceki made some
very recent changes in CVS. Just alerting you to that fact. I
imagine that log4j-1.2.8 will contain the change.
Jake
Tuesday, October 29, 2002, 12:06:43 PM, you wrote:
SSCM I am studying the source code for
Hello Eric,
This is because you would usually want warning and fatal messages
being logged whenever they occur. They are usually encapsulated by a
conditional checking for null value or in a catch clause for when an
exception happens. These things shouldn't normally happen unless
there is some
Hello Yoav,
That implies loading it via a File object which is not guaranteed to
work in a servlet environment because you can't control whether your
app is loaded off the filesystem or directly from a .war file. Load
it as a resource, not as a file.
InputStream stream =
It all depends on how you name your loggers. The common way to name your
loggers is, of course,
private static final Logger logger = Logger.getLogger(MyClass.class.getName());
this would end up being called something like:
org.myorganization.mypackage.mysubpackage.MyClass
to have every
level value=debug/
appender-ref ref=A1/
/logger
where the level tag precedes the appender-ref tag, and the appender-ref
ref attribute is the name of the appender.
--Mark
-Original Message-
From: Jacob Kjome [mailto:hoju;visi.com]
Sent: Tuesday, November 05, 2002 12:51 PM
Log4j has gone away from using Category and now uses Logger in its
place. Just Category is still around for backward compatibility. You
should see very little difference (as they both work) now, but I don't
think categories will exist in Log4j-1.3 so start using loggers now.
Jake
At 09:23
Hello Ivan,
Well, you shouldn't use File IO in an EJB app because you can't
guarantee that the file can be read off the filesystem. For instance,
the file could be served out of a jar file. However as long as you
get an InputSream or URL of your properties or XML file, then you are
fine. That
Hello David,
Try the one I implemented. I works in Tomcat, but must exist in the
the same classloader as the log4j.jar. In Tomcat, that means either
in common/lib or shared/lib. Both can see each other so log4j.jar
could be in common/lib and the jar containing Log4jCRS can be in
either
log4j.jar in each WAR/EAR file and
*hope* administrators do not put a copy in the system CP.
DAvid
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 5:12 PM
To: Log4J Users List
Subject: Re: WebLogic Repository Selector Question
Hello David
Hello Derrick,
I have created a system for both configuring log4j and cleaning up
after log4j and implemented Ceki's Repository Selector. See what I
had to say here:
http://marc.theaimsgroup.com/?l=log4j-userm=103783030706455w=2
It takes into consideration whether the app is served from the
Well, you probably shouldn't be running BasicConfigurator.configure()
multiple times. Do it once. A good place might be a constructor. Try
testing after removing the BasicConfigurator line and see what your logging
output looks like.
Jake
At 04:26 PM 11/26/2002 +, you wrote:
hi All
Are you trying to reset the default logger repository? Once it is already
there (a default one is set there by Log4j) you need the original Object
reference that was used to set the logger repository in the first
place. It is just a simple Object obj = new Object();. If you have a
Hello Pete,
I think you missed the meaning of what was asked. What was meant by
the question was Do you have log4j-x.jar in a number of places? was
Do you have multiple instances of log4j.jar in your Weblogic
install? So, do you have, maybe one log4j.jar (forget versions for
now) in the
Hello sanjayrajsoni,
Logging with separate logger repositories (hierarchies) using a logger repository
selector is log4j's way of dealing with this. It works quite nicely,
if you ask me. It allows you to configure each individual logger
repository without treading on any other. See Ceki's doc
Hi Yoav,
Are you sure about that?
contextInitialized() get called when everything has gotten done
initializing. That is, the webapp is now ready to run. So, in effect, a
servlet with load-on-startup1/load-on-startup will get called *before*
the contextInitialized() method gets called
Hello Mark,
See comments below...
Thursday, December 12, 2002, 12:47:53 PM, you wrote:
MW Jacob Kjome has pointed us at his log4j init servlet in the past. It is
MW really quite full featured and definitely worth taking a look.
MW http://marc.theaimsgroup.com/?l=log4j-devm=103725695000410w=2
MW Jacob, do you think you can make an official apache submission (with all
MW the correct apache headers, etc)?
Is there some place that describes all that, or should I just copy the
license from some other Log4j file and paste it into Log4jCRS?
Jake
--
To unsubscribe, e-mail: mailto:[EMAIL
MW example. It is basically just the license header info at the top, AFAIK.
MW -Mark
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 1:48 PM
To: Log4J Users List
Subject: Re[4]: Log4j Configuration with Servlet
MW Jacob, do you
log4j source file will provide enough
MW example. It is basically just the license header info at the top, AFAIK.
MW -Mark
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 1:48 PM
To: Log4J Users List
Subject: Re[4]: Log4j
Hi Ceki,
see comments inline below...
At 12:45 AM 12/13/2002 +0100, you wrote:
At 15:05 12.12.2002 -0600, Jacob Kjome wrote:
Hello Mark,
MW I would also like to say that I have proposed that we include servlet/web
MW application support in v1.3 of log4j. This would include an init
servlet
Hi Mark,
I have tried using a servlet context listener in Tomcat and it behaves
just as Yoav says it does. The contextInitialized() gets called
first and then an initialization servlet which I have set to
load-on-startup1/load-on-startup gets run. So, at
least Tomcat works this way. I wonder if
Duly noted. thanks for the clarification!
Jake
At 10:32 AM 12/13/2002 -0500, you wrote:
Howdy,
Yoav, any comments about that?
You must not have gotten my reply before posting yours ;) Or the other
way around: our mail server has been having difficulties ;)
I agree with you SRV 2.3 is not
Yep,
There is no harm in using Log4j within WEB-INF/lib even if Log4j exists in
a parent classloader. It doesn't affect any other apps the the current app
is free to use whatever version of the jars they want. In the context of
using a repository selector, putting log4j.jar in the
Also look at this post I made to the log4j-dev list yesterday. It includes
an attachment which implements Ceki's ideas about using a custom repository
selector. I've only tested it on Tomcat and you'd have to see if it would
work on Weblogic. I'd like to hear about any results you get from
Hello Bill,
Sounds interesting. Can you post it along with instructions on use?
I'd like to try it.
Jake
Friday, January 17, 2003, 12:30:32 PM, you wrote:
BS To get around the problems I was having with log4j in a clustered
BS environment (multiple processes on one filesystem), I wrote a new
What exactly isn't getting recognized? What are you changing? The only
thing that I know can be done using configureAndWatch is to add
loggers. Someone please correct me if I am wrong here. So, you can add
them, but removing them from the properties file will not cause a
particular logger
In addition, check out the ConfigurationServlet in the
org.apache.log4j.servlet package in log4j-sandbox (CVS only). I haven't
tried it yet, but it should provide you with a way to modify your log4j
settings via the web.
Jake
At 10:55 AM 2/18/2003 +0100, you wrote:
On Tue, 18 Feb 2003
Hello James,
The functionality you are looking for is to be able to log within
unique logger repositories using a custom logger repository selector.
I have implemented such a selector (and a servlet context listener
which configures log4j to use it at app/server startup) which keys
logger
You really don't have to worry about it. Ant understands both and Java
understands mixed use of / and \ when using file:///.
BTW, you can also do relative paths like this and it will work for both
UNIX and Windows...
file:../WEB-INF/log4j.xml
Jake
At 11:14 AM 3/28/2003 -0500, you wrote:
See:
http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/UsefulCode
especially the links for...
Some custom repository selectors can be found in the current log4j cvs at
If you make them class static variables, it is the same as marking them as
transient. The recommended way to define a logger is probably
private static final Logger logger = Logger.getLogger(MyClass.class.getName());
This will not be serialized. If you don't make it static, then do...
Hi Lukas,
I have tested these context listeners with multiple contexts and they work
fine. However, I'd only tested on Tomcat-4.1.xx, not 4.0.xx. Not sure if
that makes a difference? Try doing the following...
1. copy log4j-1.2.8.jar (or latest CVS, I guess) to
CATALINA_HOME/common/lib
I think you want a console appender or something that isn't so
permanent. Overwriting the file each time you log to it really defeats the
purpose of logging to file.
Jake
At 10:01 AM 6/5/2003 -0600, you wrote:
I've just discovered this group, so my apologies if this has been posted
before. I
Log4j-1.2.8 introduced a better entity resolving mechanism and should clear
up the problem. There were bugs in previous versions. The change
shouldn't do much other than fix your issue. Test first, of course.
Jake
At 04:07 PM 5/28/2003 +0200, you wrote:
we use log4j in a production
If you load the properties file with a file name, it will look for the file
in the location where the java process was started unless you provide an
absolute path to the file. The better way to do this is load it off the
classloader and then provide it as an inputstream or URL to the configure
give some example please??
I'm newbie with log4j and I don't know how to do it.
Thank you!
Atte,
Carlos Yaconi Hitschfeld
Anexo: 8-4619
Teléfono: 388-4619
-Mensaje original-
De: Jacob Kjome [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 12 de Junio de 2003 12:45
Para: Log4J Users List
Asunto
Hi Christian,
Search the archives for discussions on custom loggers using wrappers vs
inheritance. Actually, this was just discussed rather recently. The
wrapper the recommended way to go.
Jake
At 01:04 PM 6/12/2003 -0600, you wrote:
Hi folks,
Supposing I had a need to create and use a
NoClassDefFoundError means that you probably have conflicting versions of
Log4j in your classpath. Try to set it up where you only have one copy of
log4j.jar in your classpath and see if that fixes things.
Jake
At 03:25 AM 6/14/2003 -0700, you wrote:
I am trying to get log4j working with a
Log4j, by default, uses a single logger repository. So, unless you log
within the context of your own custom logger repository, the last entity to
configure log4j will have configured log4j for every app using the default
logger repository. This is not usually a concern in a standalone app,
At 12:51 PM 6/26/2003 +, you wrote:
Hi. I have problem in using the common-logging with struts and
Log4j. I am basically lost. I have short questions, I appreciate if
anyone can help me little bit. these are the questions with examples:
First, if you are using commons-logging, then that is a
You need to tell javac to compile with debug flags, otherwise the line
numbers will not be provided.
Jake
At 07:26 PM 7/10/2003 +0200, you wrote:
Dear Steven and all
Thanks for the reply.
I tried and follow the examples in the mailing list.
Now I have a strange problem.
If have two web
Put log4j.properties in WEB-INF/classes of your webapp.
Jake
At 08:52 AM 7/25/2003 -0500, you wrote:
I just started using Tomcat 4.1 (moving from another server). My apps
were all coded to use the Log4j logger (1.2.8). Here's my problem.
When starting up, Tomcat apparently uses
At 07:50 AM 8/4/2003 -0500, you wrote:
You pretty much have two options...
1) Seek out all libraries using either log4j/commons-logging and moving them
from the server class-path to the appropriate app-specific directory.
2) Place your log4j.properties file also in the system/server class-path.
anyone know what may be
causing this error.
Thanks.
Tim
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 2:58 PM
To: Log4J Users List
What exactly is the current problem you are having? Just add log4j.jar to
WEB-INF/lib
\lib\servlet.jar;
E:\Tomcat 4.1\bin\bootstrap.jar;
E:\Sandbox\build\classes;
C:\j2sdk1.4.1_01\bin;
E:\Ant1.5.3\apache-ant-1.5.3-1\lib\ant.jar;
E:\Ant1.5.3\apache-ant-1.5.3-1\lib\optional.jar
Thanks for hanging in there.
Sincerely,
Tim
-Original Message-
From: Jacob Kjome [mailto:[EMAIL
This should be possible using separate logger repositories
per/webapp. Please see:
http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/AppContainerLogging
I've added a link to this in the wiki FAQ as well:
was that there was log4j path information in my
classpath, so I took that out. I rebooted the machine and tried to start
Tomcat again. I got the same appender messages.
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 2:49 PM
To: Log4J Users List
explored logging in these cases as much as with
servlet apps.
Jake
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 1:53 AM
To: Log4J Users List
Subject: RE: Separate configs for different webapps
Well, actually, under Tomcat, I wrote an InitContextListener which
automagically figures out where the current webapp exists and sets a system
property which is referenced in log4j.xml and, viola!, the log files are
placed in WEB-INF/logs of the current application no matter where it exists
have any additional thoughts.
Sincerely,
Tim
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 11:38 AM
To: Log4J Users List
I see that error in Tomcat5 as well. I assume you have log4j.jar in
CATALINA_HOME/common/lib? Did you also add log4j.jar
What exactly is the current problem you are having? Just add log4j.jar to
WEB-INF/lib and log4j.properties or log4j.xml to WEB-INF/classes and you
are ready to go. There are a couple of other options that are more
advanced, but this should get you going for now.
Jake
At 06:39 PM 8/6/2003
PM 8/7/2003 -0400, you wrote:
Sorry about that.
Here you go.
Thanks again.
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 3:17 PM
To: Log4J Users List
If you want to attach something to the list, put it in a zip file first and
attach
Not sure what the issue is, but why did you upgrade to 1.2.7? 1.2.8 is the
latest and recommeded release.
Jake
At 11:04 AM 8/14/2003 -0700, you wrote:
Hi All
I was able to run log4j 1.1.3 version in my environment without any
problems. Now when I updated my log4j to ver 1.2.7
and I boot my
Just use default initialization or use the InitContextListener that I
created in the log4j-sandbox project..
http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/AppContainerLogging
Jake
At 03:48 PM 8/12/2003 +0100, you wrote:
yeah, I'm using ant but I dont like the fact that it is
.
Tim
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 10:45 AM
To: Log4J Users List
At 09:25 AM 8/11/2003 -0400, you wrote:
Jake,
Having done as you said I am now getting a log file generated
Glad you got things going. What do you think
depending on what I am working on.
My app does not use struts or anything else requiring commons-logging.
Jake,
Enjoy your vacation! And thanks again.
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:49 AM
To: Log4J Users List
Yikes. I'd change
There doesn't appear to be anything wrong with your log4j.xml (except that
you should use level rather than priority, but that isn't the issue here).
Note that the error you've mentioned in previous emails is not an issue here...
Log4j: WARN No appenders could be found for logger
At 09:00 PM 8/23/2003 -0400, you wrote:
Hi all, I'm trying to work with JBoss and Log4J, and have run
into a question that I can't seem to find the answer to. In the
course of trying to figure out how to specify per-application
Log4J configuration for web-apps running under JBoss,
I found this
Hi Rishi,
Notice that you didn't get a ClassNotFoundException, but a
NoClassDefFoundError. They are very different. The former means that it
couldn't be found on the classpath where the latter means that at least one
was found, but not the version it expected. This is usually caused by
I used to use the configureAndWatch() method in my webapps, but I advise
against it now. The watchdog classes currently have no lifecycle
control. LogManager.shutdown() will *not* end the thread that the watchdog
uses. If you try to reload your servlet context, the thread will continue
to
Oh, and I forgot to mention setting the -Dlog4j.configuration system
property which you can poll to find where log4j.xml exists.
Jake
At 06:09 PM 8/27/2003 -0500, you wrote:
I used to use the configureAndWatch() method in my webapps, but I advise
against it now. The watchdog classes
Hi Sriram,
Do you have log4j.jar in WEB-INF/lib? If not, I'd expect default
initialization not to work. Remember that the webapp class loader can see
parent class loaders, but the parents cannot see the webapp class loader,
hence your log4j.properties will definitely not be found. If you
1 - 100 of 151 matches
Mail list logo