Re: Issue with xml logging in log4j

2007-06-19 Thread Jacob Kjome
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 lo

How to add appender dynamically to log4j.xml file

2007-06-19 Thread Ashish Gupta
Hi, I'm using log4j in my application for logging purpose. My requirement is to add a new appender on the fly to log4j.xml file persistenlty while the application is running on JBoss Server. I tried with log4j DOMConfigurator.configure() method which loads the log4j.xml file in memory but didn'

Re: How to add appender dynamically to log4j.xml file

2007-06-19 Thread James Stauffer
Appenders can be added on the fly but there isn't anything that will write the new log4j.xml. You can get the attached appenders from the logger. On 6/19/07, Ashish Gupta <[EMAIL PROTECTED]> wrote: Hi, I'm using log4j in my application for logging purpose. My requirement is to add a new append

JDK logging appender that sends events to log4j

2007-06-19 Thread James Stauffer
Has anyone made a JDK logging appender that sends events to log4j? This would achieve much the same benefit of commons-logging without any extra downloads when log4j isn't used. I.e. I would like to use JDK logging on the client and log4j on the server. -- James Staufferhttp://www.geoci

RE: JDK logging appender that sends events to log4j

2007-06-19 Thread Scott Deboy
A recent contribution: http://issues.apache.org/bugzilla/show_bug.cgi?id=42664 Looks like a great idea to me. Scott Deboy Principal Engineer COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Office: 503.224.7496 Direct Line: 503.821.6482 Cell: 503.997.1367 Fax: 503.222.0185 [EM

Re: JDK logging appender that sends events to log4j

2007-06-19 Thread James Stauffer
That appears to be the reverse of my idea. On 6/19/07, Scott Deboy <[EMAIL PROTECTED]> wrote: A recent contribution: http://issues.apache.org/bugzilla/show_bug.cgi?id=42664 Looks like a great idea to me. Scott Deboy Principal Engineer COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland,

RE: JDK logging appender that sends events to log4j

2007-06-19 Thread Scott Deboy
Sorry..try this one: http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/ Scott Deboy Principal Engineer COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Office: 503.224.7496 Direct Line: 503.821.6482 Cell: 503.997.1367 Fax: 503.222.0185 [EMAIL PROTECTED] www.como

Re: JDK logging appender that sends events to log4j

2007-06-19 Thread Paul Smith
The SVN checkout url is here: http://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/ It does rely on the latest 1.2.15 snapshot. The dependency snapshot identifiers have recently changed, so I've just updated them. Please try the latest trunk version (revision 548865). There