status=trace on the configuration element will enable debugging of the internal
components. It uses the StatusLogger, which is essentially just a special
Logger. You can add a listener to it do do what you want with the events. A
StatusConsoleListener is provided and is enabled by default when
r size {}..."
Remko
From: "SMITH, CURTIS"
To: "log4j-user@logging.apache.org"
Sent: Wednesday, July 24, 2013 6:37 AM
Subject: Not getting my log output, need debugging v2 tips?
I feel apologetic for asking how to debug a v2 configuration but there's no
lin
I feel apologetic for asking how to debug a v2 configuration but there's no
links off the v2 website. My env is embedded and I'm not getting any missing
classpath problems, I solved those. I am getting console output but none of my
FastRollingFile appenders are emitting their logs.
Some of my
orkQueueManager
.java:1021)
[2/6/06 10:26:50:364 CST] 0033 SystemErr R at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
I tried running the application through the IDE's debugger, but the IDE
says that JMSAppender was not compiled to enable line numbers for
debugging,
With a lot of help from Ceki we finally got it to work. He helped me
find that the issue was that commons logging wasn't finding log4j.
Upgrading (from 1.0.2) to 1.0.4 fixed the problem! Version 1.0.2
apparently came with Tomcat 5.0.27.
Thanks Ceki!
--
James Stauffer
http://www.geocities.com/
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> The other (preferred) setting is:
> CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging-api.jar:"
>
> ./bin/commons-logging-api.jar
> ./common/lib/log4j.jar
> ./common/lib/commons-logging.jar
I changed to the prefe
James,
The fact that the setup you describe works is just happenstance.
One setting I suggested was:
CLASSPATH="$CLASSPATH":"$CATALINA_HOME"/bin/bootstrap.jar:"$CATALINA_HOME"/bin/commons-logging.jar:"$CATALINA_HOME"/bin/log4j.jar
With NO copies of commons-logging.jar or log4j.jar in commons/lib.
T
More info: I changed the Config servlet to write a few logs with
logger.debug and logger.error and that info gets to the files but not
anything besides that.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Could the problem be that I called LogLog.debug before configure?
public class ConfigLog4jServlet extends HttpServlet {
public void init() {
String prefix = getServletContext().getRealPath("/");
String file = getInitParameter("log4j-init-file");
String fullPath = pref
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> Place commons-logging.jar and log4j.jar on the CLASSPATH by modifying
> catalina.sh. Make sure that no other copy of commons-logging.jar
> or commons-logging-api.jar or log4j exists in your system visible to Tomcat.
>
> Try that and see what happens.
CLAS
At 07:52 PM 2/15/2005, James Stauffer wrote:
On Tue, 15 Feb 2005 19:47:56 +0100, Ceki Gülcü <[EMAIL PROTECTED]> wrote:
>
> The most basic thing you could try is to place log4j
What?
Please ignore my comment above.
> I'd place commons-logging.jar and log4j.jar on the CLASSPATH by modifying
> catali
On Tue, 15 Feb 2005 19:47:56 +0100, Ceki Gülcü <[EMAIL PROTECTED]> wrote:
>
> The most basic thing you could try is to place log4j
What?
> I'd place commons-logging.jar and log4j.jar on the CLASSPATH by modifying
> catalina.sh and see what happens. Note that there must be no other copies
> of com
The most basic thing you could try is to place log4j
At 07:37 PM 2/15/2005, you wrote:
If I add
-Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
That won't work because the commons-logging-api.jar placed on the system
CLASSPATH (catalina.sh adds bin/commons-log
If I add
-Dorg.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
then catalina.out says the following. Do I need to add
commons-logging.jar to the classpath?
Bootstrap: Class loader creation threw exception
java.lang.ExceptionInInitializerError
at
org.apache.
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> What does TOMCAT_HOME/log/catalina.out say?
Do you want me to send you the whole file? Should I send it to you directly?
I also used the JSP at
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgId=499567
to check the config and it looks correct.
--
At 06:50 PM 2/15/2005, you wrote:
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> Join the club of users been bitten by Jakarta Commons Logging and
> its "smart" discovery process.
>
> You did not specify which minor version of Tomcat 5.0 it was.
5.0.27
> Anyway, if it is Tomcat 5.0.27 or later, then keep
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> Join the club of users been bitten by Jakarta Commons Logging and
> its "smart" discovery process.
>
> You did not specify which minor version of Tomcat 5.0 it was.
5.0.27
> Anyway, if it is Tomcat 5.0.27 or later, then keep the commons-logging and
> log4j
On Tue, 15 Feb 2005 18:19:52 +0100, Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> You did not specify which minor version of Tomcat 5.0 it was. Anyway,
> if it is Tomcat 5.0.27 or later, then keep the commons-logging and
> log4j jars in the following locations:
5.0.27. I'll give that a try.
--
James,
Join the club of users been bitten by Jakarta Commons Logging and
its "smart" discovery process.
You did not specify which minor version of Tomcat 5.0 it was. Anyway,
if it is Tomcat 5.0.27 or later, then keep the commons-logging and
log4j jars in the following locations:
TOMCAT_HOME/bin/com
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> Which version of log4j are you using?
log4j 1.2.8
> Where have you placed the file log4j.jar? Does your web-application's
> WEB-INF/lib contain a copy of commons-logging.jar?
common/lib
No.
log file locations:
./bin/commons-logging-api.jar
./common/lib/log4
James,
Which version of log4j are you using?
Where have you placed the file log4j.jar? Does your web-application's
WEB-INF/lib contain a copy of commons-logging.jar?
At 03:03 PM 2/15/2005, James Stauffer wrote:
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> Could you give a description of your set up?
W
Ceki Gülcü <[EMAIL PROTECTED]> wrote:
> Could you give a description of your set up?
We are running Tomcat 5.0 (with only one app).
I use an "Initialization servlet" like described at
http://logging.apache.org/log4j/docs/manual.html
On the server that doesn't log correctly we use:
CATALINA_OPTS=-se
Hello James,
Could you give a description of your set up? It's hard to tell what's wrong
with so little information.
At 09:24 PM 2/14/2005, James Stauffer wrote:
If I don't get ouptut to the files as I expect how do I debug it? I
do use -Dlogf4.debug but that doesn't seem to give clues to the ca
What's logf4? Try "-Dlog4j.debug=true" instead.
-Original Message-
From: James Stauffer [mailto:[EMAIL PROTECTED]
Sent: Monday, February 14, 2005 3:25 PM
To: Log4J Users List
Subject: Debugging
If I don't get ouptut to the files as I expect how do I debug it? I
If I don't get ouptut to the files as I expect how do I debug it? I
do use -Dlogf4.debug but that doesn't seem to give clues to the cause.
--
James Stauffer
http://www.geocities.com/stauffer_james/
-
To unsubscribe, e-mail: [EM
25 matches
Mail list logo