- Original Message
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org; Mirza Abbas Raza
[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 11:57:20 AM
Subject: Re: log4j doesn't log files when weblogic is run as a windows
service.
I'll bet they *do
));
BasicConfigurator.configure();
logger.setLevel(Level.ALL);
logger.info(controller initialized );
All the loggings are showing except the trace level !!
I just used logger.debug instead and it worked fine.
Jacob Kjome wrote:
At 11:23 AM 9/16/2006, you wrote:
I changed it to logger.error
At 05:42 PM 9/16/2006, you wrote:
Hello every body:
I am having some difficulties working with log4j, and I need some help
from some one.
I am writing a client/server application, in some way it can be compared
with a chat client, where two or more users connect to the server
through an applet.
this to get support
for flash. I will see what I can do.
Thanks
Jacob Kjome wrote:
At 05:42 PM 9/16/2006, you wrote:
Hello every body:
I am having some difficulties working with log4j, and I need some help
from some one.
I am writing a client/server application, in some way it can be
compared
At 07:19 PM 9/17/2006, you wrote:
Dear Bender,
Thanks four your xml sample now it works as I
expect, on the attached file you will find it.
Nevertheless I have some comments, I am not
log4j expert, but I guess the syntax could be
simplified, and probably it is possible:
1. With your
At 11:23 AM 9/16/2006, you wrote:
I changed it to logger.error, and it worked fine. Now I checked again
the configuration and couldn't find what's wrong.
May be this ??
logger.setLevel(Level.ALL);
but isn't suppose to log all levels ??
if I am wrong, how do i fix this ??
Theoretically, that
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
selector. In order for a server wide instance of Log4j to service
many apps without each
Use Ant to unjar to your classpath and then jar everything back up
again. You can also use zipfileset. Alternatively, you can use
JarJar [1]. The really nifty thing about JarJar is that you can
actually modify the package for Log4j and move it into your own
namespace. Not sure if this is
Just wanted to mention that after I used JarJar 0.7, even cases using
reflection worked great. I had been using 0.6, which still had some
bad behavior there. Seems perfect now. I used it on Xerces2 and
I've noticed no problems.
Jake
At 03:34 PM 9/10/2006, you wrote:
Use Ant to unjar to
At 01:58 AM 9/4/2006, you wrote:
From: Curt Arnold [mailto:[EMAIL PROTECTED]
Things particularly get
interesting in configuration as log messages are cached until the
configuration is complete and then replayed through the newly
configured logging hierarchy. That additivity doesn't work as
AOP (Aspect Oriented Programming) + Log4j would fit the bill here. Like James
said, Log4j has no way to do this automagically.
Jake
Quoting James Stauffer [EMAIL PROTECTED]:
AFAIK there is no way for log4j to automatically log every method
entry/exit without explicit logging statements.
I would report this as a bug in Bugzilla (I wonder when we will move
to Jira like most other Apache projects?)...
http://issues.apache.org/bugzilla/
BTW, do you have code in a servlet context listener to close down
Log4j upon application shutdown? I'm not sure it will solve this
issue, but
/21/06, Jacob Kjome [EMAIL PROTECTED] wrote:
If you want to use MDC or NDC, you will have to register the values using
your
classes. However, once you have that, you can redefine the layout of your
appender in the config file without changing your classes. This article
provides both
property then you have to access
it with ${env.MY_PROPERTY}
so on windows you would do
SET MY_PROPERTY=c:\my_log_directory
and in your log4j.xml you would access it:
param name=File value=${env.MY_PROPERTY}/server.log/
patrick
-Ursprüngliche Nachricht-
Von: Jacob Kjome [mailto
The file appender will only append to a log file if it is specified in the
config. Don't specify it in the config and it won't append. Of course, this
means on application restart, not for each log statement. I can't imagine why
one would want to overwrite for each log statement, but I just
If you want to use MDC or NDC, you will have to register the values using your
classes. However, once you have that, you can redefine the layout of your
appender in the config file without changing your classes. This article
provides both an example of a JDBCAppender configuration and talks
When you say environment variables, do you mean System (JVM-wide) properties?
If so, then you just reference them as ${mysyspropname}. I imagine that JBoss
sets some system properties and that is probably what you are seeing referenced
in the log4j config files you speak of. The example you
window and
-D java option but they didn't seem to work. Do you have any idea why?
Farzad-
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, August 21, 2006 3:41 PM
To: Log4J Users List
Subject: Re: using variables in log4j xml file
When you say environment
To clarify for James, it is absolutely ok for log4j.jar to be in *both*
common/lib and each app's WEB-INF/lib... at least in the case of Tomcat where
it implements child-first classloading behavior. Child-first classloading
makes it so that WEB-INF/lib/log4j.jar gets loaded in preference to any
message...
Thanks:
Bence
Jacob Kjome wrote:
Is there a log4j.xml anywhere on the classpath (in the default
package, that
is)? Look in directories and jars. I would suggest changing to an
XML config
file because Log4j looks for it first. If it doesn't find
Is there a log4j.xml anywhere on the classpath (in the default package, that
is)? Look in directories and jars. I would suggest changing to an XML config
file because Log4j looks for it first. If it doesn't find log4j.xml, then it
looks for log4j.properties. I've seen this happen so often to
At 04:57 AM 8/11/2006, you wrote:
Scott and Jake,
Thanks to your help, now it works,
It seems that my fileURL was not containing the complete host-domain
name (it works for pscp with only the hostname but not with
chainsaw/jsch).
Glad to hear you go it working. However, I would bet that you
I my experience, putty doesn't add anything to known_hosts. I'm not sure about
what cygwin does? However, JSCH can do that by setting strict host checking to
no. The following code will add the host + the host key to your known_hosts
for you (assuming you've created it already.. it won't be
Hi Yaramaka,
You wrote two separate emails in a row to this list with completely
different attempts at solving the same problem. Besides that, you
wrote to my personal email address 3 times trying to get me to write
your config file. Your sense of email list etiquette is
lacking. It's
to provide such a
config file.
So, just configure Log4j and you should be golden.
Jake
Quoting Raghuveer [EMAIL PROTECTED]:
Where shall we nned to add below code.is it in struts-config or log.xml
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, July 10, 2006
Quoting Raghuveer [EMAIL PROTECTED]:
We use struts applications and loggging by log 4j.
We are configuring loggers like normal MVS application.
But,
What is that i need to do if i want my struts application to use
commons-logging for logging.
I'm not quite sure I understand the question?
What does line 20 do? Does it configure Log4j? What JDK are you using? What,
exactly, does your classpath look like?
Jake
Quoting venkatlakshmi [EMAIL PROTECTED]:
Yes, I have included it in the classpath also.
Still it gives me the error.
--- Bender Heri [EMAIL PROTECTED] wrote:
It's
You can [re]configure Log4j as many times as you want. Configuration
is additive. Once reconfiguration does not blow away the old. I'm
not sure what you describe is something Log4j ought to support at its
core. You are welcome to create your own startup class that behaves
this way and
without a problem.
Regardless of whether I use the version of log4j that came with JBoss
(4.0.3SP1) or replace it with 1.2.13, it does this.
Chris
On 6/15/06, Jacob Kjome [EMAIL PROTECTED] wrote:
How about a link to the repository selector in the JBoss Wiki?
Also, can we assume that you
At 03:26 AM 6/15/2006, you wrote:
For each application, the log4j.xml and the log4j.jar are located in the
WEB-INF/lib directory.
But I still don't understand why I log instructions are always written in
Well, you don't want to put log4j.xml in
WEB-INF/lib. You need to put it in
How about a link to the repository selector in the JBoss Wiki?
Also, can we assume that you are using the logger mycategoryname to
do the ERROR and FATAL logging? Does all other log appending work
properly with the repository selector?
Jake
At 01:20 PM 6/15/2006, you wrote:
I have
Try defining the root logger instead of, or in addition to, your logger
definition below. I imagine you'll see output from Struts classes in the
root logger if you define it to log at the DEBUG level.
Jake
Quoting Darren Hall [EMAIL PROTECTED]:
Ok, for those following this thread, I've
...
Since Struts is using commons-logging, do I need to include any Log4J jar
files? What is commons-logging using under the covers?
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 13, 2006 1:02 AM
To: Log4J Users List
Subject: Re: setting up log4j
Put
Put log4j.jar and commons-logging-adapters-1.1.jar (see
commons-logging release notes for this newly distributed jar) in
WEB-INF/lib. This assumes that commons-logging-api.jar is in the
classpath. If this doesn't work, just use the
commons-logging-1.1.jar. Put your Log4j config file in
Quoting Maxence Terzan [EMAIL PROTECTED]:
Jacob Kjome hoju at visi.com writes:
Are the EAR's both running in the same JVM? Do you have append=true in
the
config for the file appenders? I would think it would work you have all
this
set up correctly.
Jake
The EAR are running
permission on these.
Thanks,
Shan
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 2:26 PM
To: Log4J Users List
Subject: Re: log4j and WSAD 5.0 problems
Does the directory /usr/wasapps/css/logs/ exist? Log4j won't attempt
to create
Relative paths are relative to the directory from which the JVM started. So, if
you make sure that you put your conf.file in the director where you start the
JVM, then you are golden. However, if you would not like to have this burden,
you can also define a dynamic path using a System property.
Does the directory /usr/wasapps/css/logs/ exist? Log4j won't attempt to
create it if it doesn't already exist. You must make sure that the full path
exists. If it does, Log4j will write the file there just fine (as long as the
user that started the JVM has proper permissions). Otherwise, this
Are the EAR's both running in the same JVM? Do you have append=true in the
config for the file appenders? I would think it would work you have all this
set up correctly.
Jake
Quoting [EMAIL PROTECTED]:
Hello,
I'm currently using Weblogic 8.1.
On this server, I've deployed two EARs, each
Shiby,
please see the following thread. It provides exactly the info you need.
http://marc.theaimsgroup.com/?t=11450579171r=1w=2
Jake
Quoting Philip Denno [EMAIL PROTECTED]:
The approach you are taking is called using a wrapper class.
You need to use the generic log methods on
Your XML editor tells you about this error or do you get a java exception at
runtime saying this? Ignore the former, and I'd be very surprised if you see
the latter.
Jake
Quoting paul womack [EMAIL PROTECTED]:
Zheng Wen Zhe wrote:
Hi all,
I wanna use logging facility in my struts
What exactly do you expect that to do? Put log4j.jar in WEB-INF/lib and
log4j.xml in WEB-INF/classes and Log4j will auto-configure itself (assuming you
are using a server like Tomcat where it uses child-first classloading behavior).
Jake
Quoting Zheng Wen Zhe [EMAIL PROTECTED]:
I put the
Instead of matching on on the class having Test in its name (which might be
able to be done via a Filter on an appender), I would suggest naming your unit
test loggers in a different way than you other loggers. for instance...
Logger logger = Logger.getLogger(test. + MyClassTest.class);
Then
Unfortunately, if you are going to use the default PARENT_FIRST mode, you will
need to put log4j and commons-logging.properties where commons-logging.jar can
find them. If commons-logging.jar is a server-level library, then that's where
all the jars have to go (at least with commons-logging's
- Original Message -
From: Jacob Kjome [EMAIL PROTECTED]
To: Log4J Users List log4j-user@logging.apache.org
Sent: Friday, April 28, 2006 5:02 PM
Subject: Re: Log4j doesn't create log files
Where did you expect the applicationRoot variable to come from? If you
don't
set it either
I might be wrong, but I'll bet Babu wasn't considering
programmatically creating the DailyRollingFileAppender. Babu, I
think what you are looking for is using a system property to define
the file name for the appender. For instance...
Where did you expect the applicationRoot variable to come from? If you don't
set it either within the properties file or as a Java system variable, then why
do you expect it to exist?
Jake
Quoting Rafal Markut [EMAIL PROTECTED]:
Hi,
I solved my problem.
I had:
: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: den 25 april 2006 05:55
To: Log4J Users List
Subject: Re: Logging of specific session in web app.
Well, the repository selector would require access to each session
object. Even if you could do this, I wouldn't recommend it. 300 or
more separate
Well, the repository selector would require access to each session
object. Even if you could do this, I wouldn't recommend it. 300 or
more separate logger repositories seems to me like runtime bloat you
don't want.
I wonder if you could write a filter for an appender which could be
You should wrap, not subclass, Logger. See the recent discussion on
this topic. I responded to that one and it applies here as well.
Jake
At 02:34 PM 4/21/2006, you wrote:
I'm using a project that rolled yet-another-special logger. It looks
like Log4j (mimics the API) and uses Log4j under
At 02:08 AM 4/20/2006, you wrote:
Hi all,
hopefully a simple question with a simple answer...
How can I get my application to use the log4j implementation when running
within wsad without having to set the classloader mode as PARENT_LAST?
You can't if log4j.jar exists in the parent
I'm not sure what you are trying to accomplish with resetting the
levels on the logger, but clearly you have not configured Log4j
before attempting to log. The simplest thing to do is include a
Log4j config file (log4j.properties or log4j.xml) in the root of the
classpath (otherwise known
the wrapper class.
Jake
Thanks again,
Jeff
On 4/15/06, Jacob Kjome [EMAIL PROTECTED] wrote:
No,
FQCN only comes into play when you log something. It should be...
public LoggerX(String loggerName) {
logger = Logger.getLogger(loggerName);
}
Then, as in the example I provided
) {
logger = Logger.getLogger(FQCN);
}
correct?
Thanks
Jeff
On 4/14/06, Jacob Kjome [EMAIL PROTECTED] wrote:
Whoops, I didn't mean to expose the Logger in the constructor. I
meant that to be a Class or a String and then create the logger
inside the constructor. Anyway, you get
You shouldn't be extending Logger, but wrapping it. When you log,
pass the fully qualified class name (FQCN) of your wrapper to the
logger methods and your line numbers will work just fine. For instance...
public class LoggerX implements Log {
/*
* Constant for name of class to
Whoops, I didn't mean to expose the Logger in the constructor. I
meant that to be a Class or a String and then create the logger
inside the constructor. Anyway, you get the idea.
Jake
At 08:34 PM 4/14/2006, you wrote:
You shouldn't be extending Logger, but wrapping it. When you log,
2 things:
1. You should *always* define the root logger, such as...
log4j.rootLogger=WARN, SomeAppender
2. Your other loggers need to be prefixed by log4j.logger., such as...
log4j.logger.tb.test=DEBUG, SO1, RF1
log4j.logger.org.apache.commons.httpclient.wire=WARN, SO1, RF1
Jake
At
(tb.test.SimpleInit).
[java] log4j:WARN Please initialize the log4j system properly.
There are no other log4j.properties files anywhere else that might be
going first in the path.
Thanks!
-Travis
Jacob Kjome [EMAIL PROTECTED] wrote:
2 things:
1. You should *always* define the root logger
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, March 27, 2006 10:13 PM
To: Log4J Users List
Subject: Re: How to get log4j to work with commons-logging in web
service app?
Put the config file in the default package. Log4j will pick it up.
Jake
At 08:13 PM 3/27/2006
Clearly, Log4j cannot find your appender. Make sure your appender
exists in the classpath where Log4j can find it. And make sure that
Log4j isn't in a parent classloader while the custom appender is in a
child. Classloader can look up, not down.
Jake
At 01:28 AM 3/28/2006, you wrote:
Put the config file in the default package. Log4j will pick it up.
Jake
At 08:13 PM 3/27/2006, you wrote:
I'm not sure if this is a log4j or commons-logging issue but my problem
is that...
I have an application (local web service) that uses Jetty and AXIS. We
just started using
Note the change in the subject to what the actual problem is.
Anyway, I've seen behavior myself before when using the LogFilePatternReceiver.
However, I never tracked down the cause. I'm glad someone was able to reproduce
the issue. Hopefully Scott or Paul can tease out the root cause and get
As far as I can tell, you aren't assigning the R appender to any
logger. Was that just an oversight or did you expect something to happen
simply by defining the R appender?
Jake
At 04:04 PM 3/5/2006 -0800, you wrote:
Hi,
I am trying to use log4j for my application which uses
Tomcat 5.5.8
jms.jar is a download from Sun. You won't find it in the chainsaw
distribution. However, I'm not sure the best place for it? Scott, should
it go in the chainsaw plugins directory or JAVA_HOME/jre/lib/ext?
Jake
At 10:06 AM 2/28/2006 +0100, you wrote:
Hi all,
I'm using the Java Web Start
see comment below...
At 06:05 PM 2/27/2006 +0100, you wrote:
Interesting aspect. I never dealt with classloaders. Thanks for this
improvement of my knowledge.
Heri
-Original Message-
From: Javier Gonzalez [mailto:[EMAIL PROTECTED]
Sent: Monday, February 27, 2006 5:31 PM
To: Log4J
So, you are saying, eventually, after your code using PropertyConfgurator
runs, that logging starts working as you expect. But you are still worried
about seeing the warning message before you configurator runs? Keep in
mind that static loggers may be instantiated and used to log before
This seems like it would get more response on the developer list. I
suggest you post it there.
Jake
At 09:48 AM 2/23/2006 +, you wrote:
Log4j gurus,
I can now confirm that I have a Log4j configuration where the dispatching
thread (consumer) in an AsyncAppender sometimes becomes the
The best bet for both cases is to write a RepositorySelector that selects
the LoggerRepository based on criteria you define. The most common cases
of repository selectors are ones based on classloader (which can cause
classloading issues unless you are *really* careful about it) or JNDI.
I'm seeing an issue where sometimes, not all the time (not all files I've
loaded), when I load a log file using VFSLogFilePatternReceiver (might be
applicable to any LogFilePatternReceiver, but happened to be using the VFS one
connecting via SFTP, in this case), I get some duplicated events.
, though.
Jake
Scott Deboy
COMOTIV SYSTEMS
111 SW Columbia Street Ste. 950
Portland, OR 97201
Telephone: 503.224.7496
Cell: 503.997.1367
Fax:503.222.0185
[EMAIL PROTECTED]
www.comotivsystems.com
-Original Message-
From: Jacob Kjome [mailto:[EMAIL
First, I finally got SFTP URL's working with Chainsaw. None of my desktop SSH
clients store anything the known_hosts file. They either keep info in the
registry or somewhere else, but never in known_hosts. I created the entries by
using a simple java class to set strict host key checking to
We have a log4j configuration with a file appender having the conversion
pattern
%-14d{ISO8601} %-5p %c{3} - %m%n
This results in lines such as...
13/02 14:05:06 DEBUG ui.actions.MyAction - Some message
My chainsaw config has the following for timestampFormat...
dd/MM HH:mm:ss
This
about the SFTP stuff I mentioned, so if anyone has anything
to say about that, it would be appreciated.
Jake
Quoting Jacob Kjome [EMAIL PROTECTED]:
We have a log4j configuration with a file appender having the conversion
pattern
%-14d{ISO8601} %-5p %c{3} - %m%n
This results in lines
Quoting Scott Deboy [EMAIL PROTECTED]:
On my WinXP box,
In my $user.dir/.chainsaw/plugins directory, I have:
commons-logging.jar
commons-vfs-1.0-RC2.jar
jsch-20050802.jar
log4j-chainsaw-vfs.jar
I'd hope later versions of jsch would work as well.
In $user.dir/.ssh directory,
I second James' suggestion. However, if you really want to use relative paths,
then you need to know what directory the VM is starting from. This depends on
how you are starting Tomcat. I'll assume you are using plain vanilla Tomcat,
not Tomcat bundled with JBoss or some other such package.
here can provide information on the SysLogApender issue
you are running into.
Jake
Quoting Mark F [EMAIL PROTECTED]:
Jacob Kjome wrote:
commons-logging-api.jar should be in CATALINA_HOME/bin.
commons-logging.jar
and log4j.jar should be in CATALINA_HOME/common/lib. Do *not* put
commons
Quoting Zsolt [EMAIL PROTECTED]:
If that worked I would use it:
${catalina.home}/logs/some.log
Have you set CATALINA_HOME as an OS environment variable? That's what Tomcat's
.bat and .sh batch startup files, and service.bat Windows service installer use
to set the value for catalina.home.
?
I know this setup works fine with Tomcat-5.5.xx, which I would recommend moving
to ASAP.
Jake
Quoting Mark F [EMAIL PROTECTED]:
Jacob Kjome wrote:
Do you have both log4j.jar and commons-logging.jar in
CATALINA_HOME/common/lib?
Note that is comons-logging.jar, not commons-logging-api.jar
Hi Paul,
I get the following error when trying to install via webstart...
JNLPException[category: Download Error : Exception: java.io.IOException: HTTP
response 404 : LaunchDesc: null ]
at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
at
worry about this too much until I
can verify whether I can get VFS to find the file directly using the VFS API.
I'll let you know what I find.
Jake
Quoting Jacob Kjome [EMAIL PROTECTED]:
Hi Paul,
I get the following error when trying to install via webstart...
JNLPException[category
Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib?
Note that is comons-logging.jar, not commons-logging-api.jar.
Jake
Quoting Mark F [EMAIL PROTECTED]:
Version: 5.0.30
Log4j: 1.3
I'm attempting to use log4j for all of tomcat logs. I would like for
all
Quoting Paul Smith [EMAIL PROTECTED]:
The first issue definitely sounds like a cache issue. Didn't think
of IE's cache, what Scott says sounds reasonable. (You could always
try launching it via, say, Firefox to see if you get a different
effect?)
Scott's suggestion for clearing the
Quoting Michelle Xue [EMAIL PROTECTED]:
In my program, I use RollingFileAppender to log(in window), and it
didn't create the rolling files when rollOver() is called, and I suspect
it's some lock problems in window. Anyone knows how to solve that?
Also, in the source code,
Quoting Dirk Ulrich [EMAIL PROTECTED]:
Hello.
The sources of my current development dir is D:\projects\SPI\java\src and I
am using log4j to log the app's messages. In the log4.properites file I have
defined several Appenders and I wonder why the following happens:
Avoid configureAndWatch() like the plague. Instead, use a tool like LogWeb...
http://www.codeczar.com/products/logweb/index.html
Jake
Quoting Philip Denno [EMAIL PROTECTED]:
There is a mechanism called configureAndWatch (look in the javadoc) which
checks if file has been changed recently,
Quoting Pagnin Roberto [EMAIL PROTECTED]:
Hi James, I've tried to change levels and removed root logger but no result
changes.
I've done another try, I've removed the second logger from configuration and
modified the application to write to the survived logger but same error
appears
At 07:11 PM 1/20/2006 -0700, you wrote:
I am using an XML config file (posted below). I always get the following
error message when starting the application:
log4j:ERROR Parsing error on line 2 and column 83
log4j:ERROR Document root element log4j:configuration, must match DOCTYPE
root null.
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{ISO8601}]%5p %c
(%F:%M:%L) - %m%n
On 12/30/05, Jacob Kjome [EMAIL PROTECTED] wrote:
At 01:26 PM 12/30/2005 +0200, you wrote:
Hi,
I have a problem configuring log4j.
I have installed two
.
Jake
J
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 9:55 PM
To: Log4J Users List
Subject: Re: How to get rid of the zillions of DEBUG messages?
You say log4j.properties is in your WEB-INF/classes directory, but where is
log4j.jar
You say log4j.properties is in your WEB-INF/classes directory, but where is
log4j.jar? Is it in WEB-INF/lib? And if so, is your server also set up to
use child-first classloading behavior like Tomcat is by default? Most
servers actually *don't* do this by default. It's usually something
At 11:24 AM 1/2/2006 +0100, you wrote:
Hello,
I developed a very simple ear application that includes a web app and a
stateless EJB.
The EJB uses log4j.
This application runs in weblogic8.1 server. I am using
log4j-1.2.13.jar.
The ear structure is as follows:
First, you should be using Logger, not Category. That goes for the config
as well: log4j.rootLogger instead of log4j.rootCategory. In any case,
that's not super important since either will work, but you should make a
practice of using Logger instead of Category for future compatibility.
Jacob Kjome [EMAIL PROTECTED] wrote:
First, you should be using Logger, not Category. That goes for the config
as well: log4j.rootLogger instead of log4j.rootCategory. In any case,
that's not super important since either will work, but you should make a
practice of using Logger instead of Category
At 01:48 PM 12/29/2005 +1100, you wrote:
Hi everyone,
I am using log4j under Tomcat 5.0 with log4j.properties file.
When I perform unit test outside of Tomcat I can see log from
some deep level of call stack. However, it isn't the case when
I use the same components inside Tomcat. It
of using
log4j.xml rather than log4j.properties and putting log4j.xml in
WEB-INF/classes and log4j.jar in WEB-INF/lib. Then try again. You should
see *all* logging at this point.
Jake
Thank you very much.
Hakan
Jacob Kjome [EMAIL PROTECTED]
30/12/2005 03:07 AM
Please respond to
Log4J Users
This is more a matter for the Tomcat docs. Tomcat does not use Log4j. It
uses commons-logging. Furthermore, it uses commons-logging-api.jar which
does not recognize Log4j as an implementation that it wraps. I'm pretty
sure Tomcat docs have pointers on logging configuration. Note that
At 09:13 AM 12/20/2005 -0500, you wrote:
Hi,
I am getting the following error from log4j (version 1.2.8) during the
configuration.
I think Curt did some fixing of DTD handling in 1.2.9. Please upgrade to
1.2.9 or, better yet, the latest release version, which is 1.2.13.
Jake
Quoting Steve Pringle [EMAIL PROTECTED]:
Hi All,
We're using 1.3 and scheduled to go into production with our application in
3 months. We're using 1.3 minimally, nothing fancy. Do you think we should
switch to 1.2.13, or stay with 1.3?
If you are doing nothing fancy, I would recommend
At 12:16 PM 12/13/2005 -0800, you wrote:
I'm trying to upgrade to log4j-1.3alpha-7, but not seeing what I would
expect...which is hopefully user error.
First, I thought I could replace my call to
DOMConfigurator.configureAndWatch(LOG4J_CONFIG_FILE,
LOG4J_CONFIG_FILE_CHECK);
With:
if I can download a tarball
of the latest source and try it. I'll see what I can do.
Jake
cheers,
Paul
On 09/12/2005, at 5:37 PM, Jacob Kjome wrote:
I feel like I should know this, but having never actually trying
the VFSLogFilePatternReceiver before and trying to set it up now, I
401 - 500 of 688 matches
Mail list logo