How are you running your program? Under an
appserver? Standalone? How is log4j.properties loaded by
Log4j? Using autoconfiguration with log4j.properties in the root of
the classpath, pointing to it via the system property, or loading it
manually off the classpath or the file system?
It
I recall that certain versions of Tomcat 5.5, I think somehwere in the 5.5.15
to 5.5.17 series (don't quote me on that) had some serious classloader issues
which were corrected in later releases. Search the release notes and upgrade
you Tomcat version.
Jake
On Mon, 16 Jul 2007 11:35:40
What do you expect when you set the ROOT logger to debug? That
means *all* loggers are set to debug. I suggest setting the ROOT
logger to warn and setting individual hierarchies to debug. If
your company uses the package namespace com.mycompany, then create a
logger like so...
logger
What do you expect when you set the ROOT logger to debug? That
means *all* loggers are set to debug. I suggest setting the ROOT
logger to warn and setting individual hierarchies to debug. If
your company uses the package namespace com.mycompany, then create a
logger like so...
logger
I'm not sure whether I'm interpreting your request correctly, but I
think you are saying that some of your non-JUnit code might spit out
errors by the simple fact that you are testing expected failures by
intentionally putting objects in a state where they should fail to
make sure they do
What I do is reference a property that I know my web application will
set up for me upon application startup that is uniquely named, but
predictable. For instance, if your webapp context is named MyApp,
then you'd reference ${MyApp.log.home} and create this property
*before* manually
XML Layout intentionally writes a file with no valid root
element. You need to wrap the file in a root element. An easy way
to do this is to use DTD entity includes or use XMLInclude. Or, load
it as a DocumentFragment into a full Document using the DOM.
BTW, you should post this to the
?
Both need to be, specifically, in common/lib and the Log4j config file has to
be in common/classes. But, again, I don't recall how this works with Tomcat4
which is what I presume you are using based on your use of Tomcat's
FileLogger.
Jake
-Original Message-
From: Jacob Kjome
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 10:35 AM
To: Log4J Users List
Subject: Re: log4j implementation question
On Fri, 1 Jun 2007 11:23:54 -0400
Propes, Barry L [EMAIL PROTECTED] wrote:
also, Jake,
my commons-logging.jar file (NOT my
missing there, if Tomcat can now see Log4j upon startup, but
I can't import the package?
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 1:06 PM
To: Log4J Users List
Subject: Re: log4j implementation question
On Fri, 1 Jun 2007 12:31:29 -0400
Please add a link to JAMon in the Log4j Wiki. It sounds very useful!
http://wiki.apache.org/logging-log4j/Log4JProjectPages
Jake
On Thu, 31 May 2007 12:39:29 -0400
Steve Souza [EMAIL PROTECTED] wrote:
I am the author of the open source monitoring tool JAMon available at
On Thu, 31 May 2007 11:23:34 -0400
Propes, Barry L [EMAIL PROTECTED] wrote:
ok, see my post below
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 10:32 PM
To: Log4J Users List
Subject: Re: log4j implementation question
At 03:55 PM 5/30
/log4j/docs/documentation.html
http://wiki.apache.org/logging-log4j/Log4JProjectPages
Jake
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 1:13 PM
To: Log4J Users List
Subject: Re: log4j implementation question
On Thu, 31 May 2007 11:23:34 -0400
plate with figuring out the
basic workings of Log4j. Concentrate on using Log4j for logging in your
application only for now.
Jake
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 3:46 PM
To: Log4J Users List
Subject: Re: log4j implementation
I'm not familiar with your execution environment, but it sounds like
you've got multiple classloaders mucking things up. I can't say much
more than that because I've never used pro guard nor launch4j.
Jake
At 09:04 AM 5/30/2007, you wrote:
Hi,
I am log4j user and now getting the following
At 03:55 PM 5/30/2007, you wrote:
Hello,
I'm using Tomcat 4.1.31 on my servers, and was looking to implement
log4j for additional logging capabilities and info.
I've been reading this, but maybe it's a bit outdated or I'm not
following it correctly.
Entity includes may work.
Jake
Quoting Jon Wilmoth [EMAIL PROTECTED]:
Have you tried using Xincludes? You'll need an XML parser that supports
the XInclude pre-processing.
-Original Message-
From: John Doran [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 29, 2007 11:22 AM
To:
I take it you are using Log4j-1.3 alpha? If so, look here...
http://logging.apache.org/log4j/docs/api-1.3/org/apache/log4j/selector/ContextJNDISelector.html
Jake
Quoting Sandip Prashar [EMAIL PROTECTED]:
Could you please provide sample, how to configure in RepositorySelector in
log4jinit
The warning you are seeing is for Tomcat's logging. I'm not sure how
JBuilder manipulates the classloading behavior of Tomcat when it is
embedded, but normally the way that you configure Tomcat to use Log4j
for logging is to put log4j.jar and commons-logging.jar in Tomcat's
common/lib
Depends on what you want to do. Sounds like you have a single
application running on each appserver. In this case, just put
log4j.jar and log4j.xml in the server's classpath and let Log4j
initialize itself. Alternatively, you can write a startup class for
the appserver. I know Weblogic
Just use the Logger methods that take a Throwable argument.
Jake
At 12:13 AM 4/22/2007, you wrote:
Hi,
In my java problem, i use e.printStackTrace() thru out my problem.
Can you please tell me how can I log that to file using log4j?
I notice e.printStackTrace(PrintStream ) but how can I get
=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=[%d{ISO8601}] %-5p %l - %m%n
log4j.appender.FILE.File=regs.log
log4j.appender.ROLL.DatePattern='.'-MM-dd-HH-mm
#log4j.appender.FILE.MaxFileSize=1MB
#log4j.appender.FILE.MaxBackupIndex=2
Jacob Kjome wrote:
At 05:13 PM 4/12/2007, you
At 05:15 PM 4/12/2007, you wrote:
nothing worked, unless I dropped the log4j.dtd file in the same folder as
weblogic startup script is located.
hope this helps someone else.
This should be totally unnecessary, at least with newer versions of
Log4j-1.2.xx. Have you tried 1.2.14?
Jake
Sohan
!-- === --
!-- Setup the Root category --
!-- === --
root
appender-ref ref=TEST/
/root
/log4j:configuration
Jacob Kjome wrote:
Have you tried using the JNDI repository selector solution, such as
in Log4j-1.3? To test this out quickly, you could
based on JNDI. See another
thread on the user list for an explanation of how to use the one in Log4j-1.3
(though I'm not advocating moving permanently to 1.3, only to try it out to see
if the ContextJNDISelector works. Then you can modify it to work for 1.2).
Jake
Eric Wolf
Jacob Kjome [EMAIL
information is being written normally from java
classes that extend HttpServlet.
Logging from other java class files is not working as intended. My
application uses struts 1.2.9 too.
thanks,
Sohan
Jacob Kjome wrote:
Quoting sohan [EMAIL PROTECTED]:
I changed to use Log4j.xml from
1. Use non-static loggers (for Serializable classes, you'll need to
mark these as transient)
2. Avoid Classloader-based repository selectors. Use JNDI-base
selectors. There's already one written for Log4j-1.3alpha. Even if
you don't care to use 1.3, you can use it to get an idea of how
This might make a good wiki entry. I encourage you to enter it if
you get a chance...
http://wiki.apache.org/logging-log4j/UsefulCode
Jake
At 02:53 PM 4/3/2007, you wrote:
Mark --
Try this:
1) Rename the log4j.xml file that you use for testing to something else,
perhaps test-log4j.xml.
Personally, I use a separate Log4j config file for build-time -vs- run-time.
But if you must use the same file, you can always set the property when you run
the tests. For instance, using Ant...
junit ...
sysproperty
key=catalina.home
value=${path_to_log_dir}/
...
...
...
Quoting Kailash Chandra [EMAIL PROTECTED]:
I am using the log4j.2.8.jar in my ear file Log jar file is place at my lib
folder at ear level
Do you mean APP-INF/lib? If it's just in lib, Weblogic doesn't see that.
It must be the former.
I have also set the class-path option of meta-inf file
Quoting Asif Mekrani [EMAIL PROTECTED]:
Hi Group,
Please can you tell me how to use the names logger. means :
Usually we use a class name for the logger name, eg:
private static Log logger = LogFactory.getLog(MyClass.class);
but wat if, I want to use a string name instead of the class
-
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org
Sent: Monday, March 05, 2007 10:37 PM
Subject: Re: Log4J and Tomcat 5.5 - Trouble getting started
Quoting Chris Chappell [EMAIL PROTECTED]:
Hi
I'm developing an app with Tomcat 5.5 and am trying
I mentioned TC5.5 was in case the changes in logging had
affected things- it is a while since I've been developing with java
and wanted to note the environment I'm using.
- Original Message - From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org
Sent
Quoting Chris Chappell [EMAIL PROTECTED]:
Hi
I'm developing an app with Tomcat 5.5 and am trying to add logging to it.
I've tried lots of things and none seem to work:
I have code like:
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import
a lot for the suggestions, I will take a look at this.
-Regards
Rashmi
- Original Message
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org
Sent: Friday, March 2, 2007 12:32:48 PM
Subject: Re: Newbie trying to change Standard Output log to File log
Does HIbernate package log4j.properties in their library? Where do
you put your modified log4j.properties? Log4j auto-configures itself
in a static initializer and looks first for log4j.xml and then
log4j.properties (if the former isn't found) in the default
package. Are you sure your
Loggers inherit appenders unless they are told not to. If you add an appender
to a logger and you want all logging for that logger to go only to the appender
you just added to it, you'll have to set additivity=false to this logger.
log4j.additivity.com.mycompany.MyClass=false
OR
logger
At 07:29 AM 2/24/2007, you wrote:
hi - i have exactly the same issue:
* i did what you mentioned (1-3)
* yes it copies the log4j.xml to the right place under src/test/
* BUT the testrunner the complains that it cannot find the file under the
projects root directory (where also the pom.xml sits)
Is Log4j.jar at the same level commons-logging.jar? That is, are they in the
same classloader? And are you making sure to use commons-logging.jar and not
commons-logging-api.jar?
Jake
Quoting [EMAIL PROTECTED]:
Hi,
Not sure if this is the correct list for this but will try anyway.
We
That's an interesting quote. I have to admit that I haven't read the
Log4j manual and that's new to me. In Log4j, reconfigurations are
genrally not destructive. They are cumulative. It sounds like the
manual is claiming that the ROOT logger is an exception to the rule.
Have you tried
Moving discussion to the Log4j user list where it should be...
Here's some things to try...
1. classpath:log4j.xml is not a valid classpath URL. It's a
pseudo-URL supported by Springframework, which is probably where you
picked this usage up. Log4j doesn't recognize this pseudo-URL
At 08:03 AM 2/10/2007, you wrote:
Is there something in java for log4j similar to this web interface
that exists for l4n ?
http://www.l4ndash.com/
Hi Ricardo,
I'm working on a similar project right now.
Not to discourage your work, but are you sure you aren't reinventing the
Quoting James Stauffer [EMAIL PROTECTED]:
Don't put log4j.jar or your log4j config file in a shared location but
put them under each web app. Then your logs should stay separate.
Or use a RepositorySelector implementation, but that's way more complicated than
what James suggests.
Actually,
for the
root logger.
I think the log4j.xml file is being found. You just haven't specified any
appenders for any loggers other than those named after your own package
namespace.
Jake
Quoting Lisa [EMAIL PROTECTED]:
Jacob Kjome hoju at visi.com writes:
Change:
-Dlog4j.configuration=c
At 10:13 AM 1/22/2007, you wrote:
Hi,
Log4j works in objects that implements Serializable?
If so, how this is possible? If a client receives an object from the
server that
implements Serializable, how the client knows how to interpret log4j
instructions?
Log4j Loggers are not Serializable.
Does Jonas use something similar to the JBoss Unified Classloader? I don't
fully understand the Unified Classloader, but from what I've gathered, it seems
as if libraries, no matter where they are loaded from, are all part of one
uber-classloader. If this is true, and Jonas uses something like
the loggers.
If the PARENT_LAST thing doesn't work, I'll try this.
Thanks again,
--Erik
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, January 19, 2007 11:07 AM
To: Log4J Users List
Subject: Re: Missing loggers from getCurrentLoggers() under WAS 5.x
Does
The behavior is curious. I would guess that some other library is
configuring Log4j on it's own. This doesn't have to be via a config
file. It could be just doing it programmatically. I take it you
searched for both log4j.properties *and* log4j.xml. You only
mentioned the former, so I
The file should look something like this...
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration xmlns:log4j=http://logging.apache.org/log4j/;
debug=false threshold=debug
/log4j:configuration
Jake
Quoting Surya Poola [EMAIL PROTECTED]:
Hi,
Iam getting the
Quoting dirk ooms [EMAIL PROTECTED]:
On Monday 15 January 2007 19:04, Jacob Kjome wrote:
The file should look something like this...
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration xmlns:log4j=http://logging.apache.org/log4j/;
debug=false threshold=debug
AFAIK
At 11:19 AM 1/12/2007, you wrote:
Jacob Kjome hoju at visi.com writes:
quote
getClass().getClassLoader().getResource(WEB-INF/config/my_log4j.properties);
/quote
The above is totally invalid because the WEB-INF directory is not
(normally)
in the classpath.
Well, it raised my brows too, i
Quoting Reshat Sabiq [EMAIL PROTECTED]:
Jacob Kjome hoju at visi.com writes:
getClass().getClassLoader().getResource(WEB-INF/config/my_log4j.properties);
...
getClass().getClassLoader().getResource(my_log4j.properties);
...
servetContext.getResource(/WEB-INF/config/my_log4j.properties
At 06:30 PM 1/9/2007, you wrote:
I'm just curious if log4j guarantees that it would load the file that
resides in WEB-INF/classes,
as opposed to a similar named class loaded by a parent class loader.
P.S. Because in general, if i understand correctly, a call like
At 04:21 PM 1/9/2007, you wrote:
I wrote a standalone Java application that uses
commons logging (because of Axis) and log 4j. I am
using a log4j.properties file. When I run the program
from within the development (Eclipse) environment, the
logging works fine. However, when I run the program
from
/index.html
cheers
patrick
-Ursprüngliche Nachricht-
Von: Jacob Kjome [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 26. Dezember 2006 18:28
An: Log4J Users List
Betreff: Re: Loading sequence of log4j
Don't use a init servlet. The servlet spec makes no guarantee as to
when the servlet
Do you call LogManager.shutdown() in the shutdown method of a
ServletContextListener? If not, do so and try again.
Jake
Quoting Gilbert, Antoine [EMAIL PROTECTED]:
Hi list
I deploy an application WAR on a Tomcat 5.5 instance. This application
use Log4j (via commons-logging) and create
selector, then it would be a
problem. If you use a repository selector, then it would only affect your
webapp's logger repository and wouldn't be a problem.
Jake
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: January 3, 2007 11:37 AM
To: Log4J Users List
Subject: Re
At 04:04 AM 12/27/2006, you wrote:
On 12/27/06, chuanjiang lo [EMAIL PROTECTED] wrote:
I am using PropertyConfigurator.configure in the Listener class
PropertyConfigurator.configure(event.getServletContext
().getRealPath()+/WEB-INF/foo.xml);
2 things...
1. Never ever use this. Always
Do you get logging output otherwise? Is
es.app.config.PropPreferences a class where you
perform manual configuration of Log4j? If so,
then don't define a Logger in a class meant to
configure all other loggers or, at least make it
an instance variable and don't initialize it
until after
There's no clear Log4j-specific issue here. I suggest you contact
the author of the article.
Jake
At 02:16 AM 12/28/2006, you wrote:
Hi,
I'm using Eclipse 3.1.2 with Java 1.4.2 and log4j-1.2.8, testing the log4j
example by ibm developerworks:
You could try using a custom repository selector
that is keyed by thread. Log4j-1.3 has one keyed
by JNDI. Others out there are keyed by
ClassLoader, but that just leads to classloading
issues. Look up in your favorite search engine
or in the Log4j Wiki. The Log4j -sandbox used to
have
Don't use a init servlet. The servlet spec makes no guarantee as to
when the servlet initialization will happen. It may or may not be at
container startup. Use a serlvet context listener. It has methods
that are guaranteed to be called at application startup and
application shutdown.
at 1166713318861 sessioncount 4
DEBUG 2006-12-21 10:01:58,862
[ContainerBackgroundProcessor[StandardEngine[Catalina]]] - End
expire sessions
StandardManager processingTime 1 expired sessions: 0
Quoting Jacob Kjome [EMAIL PROTECTED]:
I don't recall what the BasicConfigurator does. You
so much for your help!!
Quoting Jacob Kjome [EMAIL PROTECTED]:
1. Don't configure from the servlet. Either let Log4j autoconfigure
itself by finding log4j.properties or log4j.xml in the classpath or
configure from a class that's guaranteed to be called once (or has
methods
Create a ${user.home}/.chainsaw/plugins directory.
Jake
Quoting baanji [EMAIL PROTECTED]:
Hi
I have given the path of the configuration file (log4j.properties) as a
listener
to look for while loading the chainsaw. But the chainsaw-log window displays
the following error. Any idea?
ManagerBase - Start expire sessions
StandardManager at
1166641005968 sessioncount 0
DEBUG ManagerBase - End expire sessions
StandardManager
processingTime 0 expired sessions: 0
Any ideas? Thanks so much for your help!!
Quoting Jacob Kjome
Log4j should not be in shared/lib. Put either in common/lib or WEB-INF/lib (or
both, doesn't really matter), but not shared/lib.
And unless you want to share a logger repository and/or use Log4j for Tomcat
logging (in which case you would also put commons-logging.jar in common/lib), I
would
Did you compile with javac debug enabled?
jake
Quoting jin xin [EMAIL PROTECTED]:
Hi:
I use the following code
Class testClass
{
public void test1()
{
---
Throwable throwable = null;
Throwable child = new Throwable(test);
LoggingEvent loggingEvent = new
1. Don't configure from the servlet. Either let Log4j autoconfigure
itself by finding log4j.properties or log4j.xml in the classpath or
configure from a class that's guaranteed to be called once (or has
methods that are guaranteed to be called once) such as a servlet
context listener.
2.
You can't have a well formed XML document without a starting root
element. Add the following after the doctype declaration...
log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/;
Jake
At 11:48 AM 12/15/2006, you wrote:
Sorry to bother you all again, but I am trying to get
I agree with James. Remove the filter. I don't use filters much,
but it seems to me that you've matched the entire range of levels
from debug all the way to fatal and then declared all those
levels to *not* be accepted upon match, effectively disabling the
entire appender. And Im not sure
Bender,
You are correct in your latest analysis, but incorrect on your original
analysis. Chuanjiang's original XML file was just fine and the fact that he
increased the level to error should have made it so that only ERROR messages
would print to the A1 appender for that specific logger, while
Quoting Bence Takács [EMAIL PROTECTED]:
Thanks for the tip, it works. I can get the MDC.
But I use Chinsaw to view the logs. And Chainsaw can open only an
XML-formatted log file.
Not quite true. Use a LogFilePatternReceiver to load a standard non-XML log
file.
Jake
The XmlLayout doesn't
At 01:15 AM 11/24/2006, you wrote:
Hi folks,
I am very new log4j and i want to implement log4j in my
module. I had gone through material in net.
In my module i am having 5 to 6 servlets. For writting log4j
code in web application, we have to provide the properties file like
It should work to define the common stuff as properties and reference
them further down the file. So...
appenderClass=org.apache.log4j.RollingFileAppender
...
...
log4j.appender.tuxcat=${appenderClass}
Just apply the same thing to all the other common stuff. I haven't
tried this, so I
Quoting James Stauffer [EMAIL PROTECTED]:
Code in log4j should only use LogLog for logging
Note that this is true for Log4j versions previous to 1.3alpha, but as of
1.3alpha, Log4j uses itself for logging (except for the short time prior to
bootstrapping itself).
Jake
, which is only sent
to
James is correct about the fact that Tomcat sets this system property. However,
you should be using ${catalina.base} instead of ${catalina.home}. You may very
well have a separate instance of Tomcat with a different base directory than
that of ${catalina.home}. In that case that you truly are
You can get that sort of behavior using an MDC based filters on various
appenders. There was a thread about a week ago or so that suggested allowing
for a custom class to be configured for a logger which would provide custom
criteria to determine if a level is enabled. Of course, this is not
Where do you put your config file? And is the config file log4j.properties or
log4j.xml? Do you use automatic configuration or manual configuration?
Jake
Quoting James Stauffer [EMAIL PROTECTED]:
Can you turn on log4j debugging (set log4j.debug system property to
true)? That might help
log4j.logger.org.apache.struts.action.ActionServlet=debug
Notice that the R appender is no longer explicitly declared on the
ActionServlet logger. This same concept should be applied to all
loggers which inherit the appender from a parent.
Jake
-Original Message-
From: Jacob Kjome [mailto:[EMAIL
So, where are you seeing the logging now? In the console? What does your log4j
config file look like? Do you have commons-logging.jar and log4j.jar in
WEB-INF/lib and log4j.properties or log4j.xml in WEB-INF/classes?
Jake
Quoting Dave Kennedy [EMAIL PROTECTED]:
Hi,
ENV: Struts 1.2.9,
Where do you put this config file? Is it deployed with your webapp or in
CATALINA_HOME/common/classes?
BTW, unless you turn off additivity for a particular logging hierarchy, you
shouldn't re-declare the appender on the logger when it already exists on the
rootLogger. You'll end up with
, however, is pretty wide open. I suggest you
fill out a Bugzilla feature request and provide a detailed
description of what you want there including implementation details,
if possible.
Jake
ste
Jacob Kjome wrote:
At 05:41 AM 10/15/2006, you wrote:
Hi Jacob,
thanks for your reply
Don't call configure every time you log. In fact, don't bother
calling it at all and just put a log4j.properties or log4j.xml in the
root package, or default package, of the classpath. Log4j will
configure itself. You only need to worry about logging.
Remember, Log4j is additive. Each
At 05:41 AM 10/15/2006, you wrote:
Hi Jacob,
thanks for your reply.
Checking in the log4j source code, i saw all log methods and all guard
methods performs something like this:
public boolean isTraceEnabled() {
if (repository.isDisabled(Level.TRACE_INT)) {
return false;
At 10:49 AM 10/14/2006, you wrote:
Hi All,
I need to implements a user-level filter. I read in the archive some
threads about that but I didn't found or i didn't understand the right way.
I have a web application and I want to keep the log level to info or
error and just set to debug for a single
James is probably wondering whether your code is running in a web
container, such as Tomcat. In that case, LogWeb might be able to help
http://www.codeczar.com/products/logweb/
It works great for me!
Jake
At 11:38 PM 10/10/2006, you wrote:
I'm don't quite understand the question.
there
shouldn't be any other app running within the same JVM that has the same
application context name.
As far as the location of the config file, that is assumed to be in in WEB-INF
unless otherwise specified the log4j-config context param.
Jake
Right ?
Maarten
On 9/29/06, Jacob Kjome
JVM that has the same
application context name.
As far as the location of the config file, that is assumed to be in
in WEB-INF
unless otherwise specified the log4j-config context param.
Jake
Right ?
Maarten
On 9/29/06, Jacob Kjome [EMAIL PROTECTED] wrote:
At 06:39 AM 9/28/2006, you wrote
I'm not actually sure what the KeyfileApender is, but you should
always do this for a ServletContextListener shutdown event..
LogManager.shutdown();
Jake
At 08:35 AM 9/29/2006, you wrote:
Hello all. I am quite new to log4j, so please bear with me if I am on the
wrong track. Any feedback is
. LogManager loads the properties file using the URL. I
just provided file url and it was all done. Thanks for your help, Jacob.
-Abbas
- Original Message
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza
[EMAIL PROTECTED]
Sent
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza
[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 2:43:23 PM
Subject: Re: log4j doesn't log files when weblogic is run as a
windows service.
I'm glad you figured it out. But it would
.
Maarten
On 9/27/06, Jacob Kjome [EMAIL PROTECTED] wrote:
That's an intersting idea. You can post an enhancement report in
bugzilla along
with your implementation. However, I'm not sure if this would be
something that
would go into Log4j-1.2.xx because it is pretty much in bugfix mode. New
That's an intersting idea. You can post an enhancement report in bugzilla along
with your implementation. However, I'm not sure if this would be something that
would go into Log4j-1.2.xx because it is pretty much in bugfix mode. New
development is on the trunk for the 1.3.xx releases.
The way
, in
the callAppenders() api of Category class. However, 'aai' is null when the
application is run as windows service. Appreciate your help.
Thanks,
Abbas
- Original Message
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org
Sent: Monday
the
properties from the log4j.properties file.
2. In the same Struts Action, I 'stepped into' using eclipse debugger into
Logger.getLogger(clazz) stack. Log4j tried to get an appender all the way to
the root, but didn't find one.
thanks,
Abbas
- Original Message
From: Jacob Kjome [EMAIL
Are you willing to have no logging information coming from the MyClass.class
logger going to the event log? In that case, using additivity=false on that
particular logger will work. Otherwise, you will either have to set up a
differently named logger which you use for exception logging only,
exactly what you want as far
as I can decifer from your original config file and fixes some of its bugs.
Jake
Thanks a lot,
David
I am going to add this new feature on Bugzila
Jacob Kjome [EMAIL PROTECTED] wrote:
At 07:19 PM 9/17/2006, you wrote:
Dear Bender,
Thanks four your xml
Quoting jan_bar [EMAIL PROTECTED]:
Thanks for your extensive answer, see inline..
Well, when you are using a repository selector, the idea is that you
have Log4j in a position where it is not part of your app, but part
of the server; otherwise there's no point to using a repository
I'll bet they *do* get created. You just don't know where to look. What does
your config look like? Does it use relative paths to the files? Keep in mind,
relative paths are relative to the directory from which the JVM started. So, if
you start on the command line, the path in the config
301 - 400 of 688 matches
Mail list logo