Writing to wrong log file

2003-10-16 Thread Clare . Myers
I have two instances of log4j running on the same UNIX server. Every once in a while log messages from one instance will appear in the other. Has anyone seen this before? Any ideas on why this could happen? Here are the config files: Instance1 log4j.appender.A1=org.apache.log4j.DailyRollingFil

need functionality to truncate the tail of fields using PatternLa yout

2003-10-16 Thread Lethin, Doug
[I sent this message the other day to the dev mailing list and got no response. I'm now sending this to the log4j user mailing list in case anyone has any feedback for me. Thanks in advance.] I'm migrating my application to use log4j and need to define a message format that's compatable with an ou

RE: need functionality to truncate the tail of fields using PatternLa yout

2003-10-16 Thread Shapira, Yoav
Howdy, >I'm assuming all I need to do is send mail to dev mailing list with the >subject PATCH, or [PATCH], and then include in the message the three diff - >c >outputs? You could do that or open a Bugzilla enhancement and attach your diffs. >Is this kind of functionality useful to others? Not

Re: need functionality to truncate the tail of fields using PatternLa yout

2003-10-16 Thread Ceki Gülcü
Doug, There is no need to patch the files you mention. Actually, they don't even exist anymore. PatternLayout has been modified to accept new conversion words. See https://www.qos.ch/logging/PatternLayout.html for more details. I hope this helps, At 11:24 AM 10/16/2003 -0400, Lethin, Doug wro

SocketAppender and MDC?

2003-10-16 Thread Rob Mitchell
Hello, I have a Java web app that creates a SocketAppender like this: myLogger = LogManager.getLogger(sName); myLogger.setAdditivity(false); // prevents double output to console SocketAppender sa = new SocketAppender(sRemoteHost, iRemotePort); myLogger.addAppender(sa); myLogger.setLevel(

RE: need functionality to truncate the tail of fields using Patte rnLa yout

2003-10-16 Thread Lethin, Doug
Wow, thanks for the fast response from the man himself. I'm a bit baffled, though, as I thought what I had was the latest release, version 1.2.8, which doesn't seem to have the enhancements you mention. I'm guessing this is because its in the currently cvs code which I would need to get, rather t

RE: need functionality to truncate the tail of fields using Patte rnLa yout

2003-10-16 Thread Shapira, Yoav
Howdy, Conversion words are in log4j 1.3, which has not yet been released. Although an Alpha is not far away... Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Lethin, Doug [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 16, 2003 11:58 AM >To: Log4J Users List >S

RE: need functionality to truncate the tail of fields using Patte rnLa yout

2003-10-16 Thread Ceki Gülcü
At 11:57 AM 10/16/2003 -0400, you wrote: Wow, thanks for the fast response from the man himself. That used to be the case. However, there are now several developers who regularly contribute to log4j, Mark, Paul, Scott, and Yoav to name a few. I'm a bit baffled, though, as I thought what I had w

App-server independent log4j logging

2003-10-16 Thread Doubleday, Dennis
My application needs to be deployable to both JBoss and Websphere (and possibly Weblogic in future). I am trying to use log4j in my app, but not having any success, even only with JBoss. Here's the deal--I want to include my own log4j.jar and log4j.xml in my WAR file. If the app server is using lo

RE: App-server independent log4j logging

2003-10-16 Thread Doubleday, Dennis
I neglected to say that, if I move my logger and appender definitions into JBoss's log4j.xml, I DO get the expected files. My question is: how can I ADD new loggers and appenders from a separate config file to the hierarchy that JBoss has already established? -Original Message- From: Doub

Making HTML log file available through web app

2003-10-16 Thread Doubleday, Dennis
Another question is "How, in an app-server independent way, can I make my web app HTMLLayout log files available through the web app itself? It would seem that I would need to write the log to a file located under the web app docroot, but I don't know how to specify such a location in the log4j.x

RE: Making HTML log file available through web app

2003-10-16 Thread Ken . Liu
This isn't necessarily app-server independent, but you can probably can take advantage of variable substitution in the config file. Log4j can substitute system property values into the log4j config file using the Ant-like syntax (${}), so if your app server puts deployment-specific information int

RE: Making HTML log file available through web app

2003-10-16 Thread Doubleday, Dennis
No, different servers for different customers. Yes, OK, I suppose I can have a different log4j.xml for each app server and a server-specific Ant deployment target. What should the relative file location be, though, if I deploy an EAR file to the server and there is no exploded context-relative di

RE: Making HTML log file available through web app

2003-10-16 Thread Shapira, Yoav
Howdy, Even if deploy exploded (a feature servlet containers are not required to support), the server admin may configure the server such that you don't have write access under your webapp. The only directory you're guaranteed write access to by the servlet specification is javax.servlet.context.

Re: Making HTML log file available through web app

2003-10-16 Thread Nathan Coast
you could install logweb, log4j web app administration interface. http://www.codeczar.com/products/logweb/ In the FileAppender section there is a link to the actual log. I have a feeling this sets the content type as text, not sure if browsers will render the html so you my have to save the fil

RE: App-server independent log4j logging

2003-10-16 Thread Jacob Kjome
Try reading this and see if it helps out: http://nagoya.apache.org/wiki/apachewiki.cgi?Log4JProjectPages/AppContainerLogging I'm not sure exactly the problem under JBoss, but they do seem to have the concept of a single classloader, which seems to cause grief for people who want to deploy their p

Re: App-server independent log4j logging

2003-10-16 Thread Tom Eugelink
JBoss uses Tomcat underneath and I'm confused about the output of log4j in Tomcat also (one of my previous emails three days ago where noone responded on). What is very useful is setting the log4j debugging on (-Dlog4j.debug=on). And if you search for "using" you might find that log4j is usin