log4j and j2se 1.4 logging APIs delimma

2002-04-04 Thread Chandan Singh
Hello log4j Users, I have been using log4j in some projects for a while and have become a great fan of this opensource product. It has saved a lot of time in our projects and provided a very flexible, extensible and fine controlled logging API. Believe it or not, after a project is in produ

AW: SMPTP Appender

2002-04-04 Thread Sauder Thomas - IWKA Informationssysteme GmbH
Hi Craig, you only have to change the properties file and save it. The rest is done by log4j. You can specify a delay with configureandwatch. Every delay ms log4j will look for changes in the properties file. If you havn't specified the delay, log4j uses a default delay (see API doc or manual). R

Re: logging an xml document

2002-04-04 Thread David Thielen
So my xml has to take a lifetime vow of celibacy and service to god? - dave - Original Message - From: "Bobby Nations" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 4:07 PM Subject: Re: logging an xml document > Dave, > > Whoops on the

Re: logging an xml document

2002-04-04 Thread David Thielen
That's what I'm doing - but it bothers me to go to a text stream and then write that stream. Oh well - it only happens if logging is on. thanks - dave - Original Message - From: "Bobby Nations" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002

Re: logging an xml document

2002-04-04 Thread Bobby Nations
Dave, Whoops on the Freudian slip "convent the element". I meant to type "convert the element". A quick look at the jdom api showed that the Document class had a toString() method meant for debugging that would appear to fit the bill. Cheers, Bobby Bobby Nations wrote: > Dave, > > Why

Re: logging an xml document

2002-04-04 Thread Bobby Nations
Dave, Why not just read the file in as a bunch of strings and then send them to the log? Or, if you've already got the file in memory, then craft some way to convent the element to a giant String and then log it. Hope this helps, Bobby David Thielen wrote: >I don't want the log in xml for

Re: logging an xml document

2002-04-04 Thread David Thielen
I don't want the log in xml format - I want to write the contents of an xml file to the log - which is in text format. thanks - dave - Original Message - From: "Collier, Mike" <[EMAIL PROTECTED]> To: "'Log4J Users List'" <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 2:43 PM Subject

SMPTP Appender

2002-04-04 Thread Craig Newlander
Hello All, I'm using the SMTP appender and configuring it from a properties file and using configureandwatch() I'd like to be able to change some of the appender's parameters at run time such as subject, and to - can someone one please lead me in the right direction on how to do this? Thanks i

Re: Loggin into a DB.

2002-04-04 Thread Kevin Steppe
Quick answer from Kevin Steppe: I am still supporting my version and answering questions. Last I asked Thomas Fenner he was too busy to actively support his version. The now "official" JDBCAppender (in org.apache.log4j.jdbc -- and which I wrote, though Ceki made great improvements to the jav

RE: logging an xml document

2002-04-04 Thread Collier, Mike
You could set your Appender to use XMLLayout for the layout. -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 4:24 PM To: Log4J Users List Subject: logging an xml document Hi; I want to log an xml Document. Is there any simple way to do t

Re: Problem closing and removing AsyncAppender

2002-04-04 Thread Ceki Gülcü
Hello Jean-François, Two possible explanations for the "log4j:ERROR Attempted to append ..." mesage: 1) You have myAsyncAppender attached to multiple loggers. 2) Are you sure myAsyncAppender is really attached to root and not somewhere else? BTW, how come your AsyncAppender is not named? Reg

1.2 and log4j.xml

2002-04-04 Thread Ronny Eckardt
Hallo, is it possible to do the configuration via an XML file named log4j.xml put in the classpath, instead of the old property file log4j.properties? I tried out in the current beta4 without success?! Isn't it inside? Can't find a hint in source code , but only in newsgroups ?-| Is it skiped

Re: log4j.disable

2002-04-04 Thread Ceki Gülcü
Hi, In the Hierarchy class the disable family of methods have been removed and replaced by setThreshold and getThreshold methods. This change is not backward compatible. The new directive is log4j.threshold=aLevel Here are some examples: # turns off all logging log4j.threshold=OFF # throw

logging an xml document

2002-04-04 Thread David Thielen
Hi; I want to log an xml Document. Is there any simple way to do this? The xml DOM classes provide an easy way to write a text representation to a stream - but I don't see any way to get the stream(s) the logger uses. ? - thanks - dave

Re: Config-File

2002-04-04 Thread Ceki Gülcü
Hi Marc, Only the DOMConfigurator supports the AppenderAttachable interface. HTH, Ceki ps: I hope the weather is as nice in Bern as it is in Lausanne. At 08:57 04.04.2002 +0200, you wrote: >We wrote a BufferedAppender which implements the >AppenderAttachable-Interface. >It is kind of similar to

Patch for SocketServer

2002-04-04 Thread R. Lemos
Hi,   Currently I am a developer at Federal University of Rio de Janeiro - Brazil, and our team is using Log4J 1.1.3 in our main project: the university's students database, which holds everything about a student's academic life, as well as other academical affairs such as classes, grades,

RE: Loggin into a DB.

2002-04-04 Thread Nate Drake
What are the differences between Kevin Steppe's JDBCAppender and Thomas Fenner's? (http://support.klopotek.de/log4j/jdbc/default.htm) Thanks, Nate -Original Message- From: Sara Prigge [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 12:39 PM To: 'Log4J Users List' Subject: RE

enabling and disabling priority at run time

2002-04-04 Thread Abhijat Thakur
Hi, I am using Log4j version 1.1.3. Have two methods one to disable priority for a category and the other to enable all priorities for a category at run time. I am only enclosing the relevant portion of the methods. I have two category COM.BDNA.PL and COM.BDNA.AGENDA. What happens is that when f

Re: Loggin into a DB.

2002-04-04 Thread Matt Egyhazy
yes - Original Message - From: "Han Solo" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Thursday, April 04, 2002 2:21 AM Subject: Loggin into a DB. >Hi: > > I started to use the Log4J and I would like to > know if it is possible to use it to log into a >

FileAppender throws FileNotFoundException when opening file for append?

2002-04-04 Thread Scott . Kay
Using the following config file I am unable to have the SCPLOG_PRINTLN appender open the file "../bin/jagmgr.log" since the file is open. Since the config specifies Append=true I would assume this would allow the openAppend to succeed. Any help would be appreciated.

Re: log4j.disable

2002-04-04 Thread Samip Ladhawala
Hi, It seems that log4j.disable and log4j.enable are not working with 1.2beta version. When I tried log4j.disable with 1.1.3 version it works fine. Is 1.2beta backward compatible? Is there replacement of this statement (log4j.disable) in 1.2beta, because even log4j.enable was also not working

Re: Loggin into a DB.

2002-04-04 Thread Kevin Steppe
Certainly... Use the JDBCAppender, it's in the cvs under package org.apache.log4j.jdbc Kevin Han Solo wrote: >Hi: > > I started to use the Log4J and I would like to > know if it is possible to use it to log into a > database instead of a filesystem? > >Regads >Francisco Jaen

Config-File

2002-04-04 Thread Bouquet, Marc
We wrote a BufferedAppender which implements the AppenderAttachable-Interface. It is kind of similar to the AsyncAppender, but doesn't have a BoundedFIFO, but a Vector which holds the LoggingEvents. The BufferedAppender has a method writeLogs(), which is called by the "User" and which writes all L

Re: Newbie cuestions

2002-04-04 Thread Marish . Hirapara
Enrique, 1. This should be determined by how much detail you want from your logs. We have several different categories setup by functional area from our application, so when we read the logs, we can just look within the functional area we are interested in. If your project is small enough, you m

RE: Loggin into a DB.

2002-04-04 Thread Sara Prigge
Yes, you use the JDBCAppender. I use Kevin Steppe's. In log4j v1.1.3, the JDBCAppender.java file can be found in the \contribs\LeosLiterak\KevinSteppe folder. You will have to compile the file yourself and add the class to the log4j package. Thanks- Sara Prigge -Original Message- From

RE: Loggin into a DB.

2002-04-04 Thread yugen
Check out JDBCAppender.java under contribs/KevinSteppe/. .. yugen http://gvf.sourceforge.net .. > -Original Message- > From: Han Solo [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 04, 2002 1:21 AM > To: Log4J Users List > Subject: Log

Preferred method to extend level?

2002-04-04 Thread kf
Please excuse the newbie nature of this question, but I am a newbie to Log4J. I would like to define additional logging levels (and yes I have a VERY good reason why) and I find conflicting information about the way to do it. The short manual in the download says to subclass level, but the short

Ceki Gülcü - please help

2002-04-04 Thread sunita agrawal
Hello Ceki, I would apprecaite if you could give me info on how to use socket appender to log messages from ejb's,servlets,jsps.I want to use PropertyConfigurator.configure(filename) only once and made it avaliable to all programs what would be the best way to do so? Following is my prop

RE: Use Log4J with WebSphere

2002-04-04 Thread aneesha . singh
Hi Michael We are using Log4j successfully with WebSphere .. but I've implemented it a lil differently. I have a class that talks to Log4j which has a method called logDebugs(). And the isDebugEnabled is called from within that class .. so all the EJB classes are logging successfully. Maybe u

RE: Loggin into a DB.

2002-04-04 Thread Bellamy, Scot
Yes, you can do that. There is a JDBC appender available from the Log4J home page. Scot. -Original Message- From: Han Solo [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 2:21 AM To: Log4J Users List Subject: Loggin into a DB. Hi: I started to use the Log4J and I

Problem closing and removing AsyncAppender

2002-04-04 Thread JEAN-FRANCOIS DAUNE
Hi all, I have an AsyncAppender appended to the root category. I have a shutdown thread (registered using Runtime.addShutdownHook) that must be run when my program exits. In this thread, I log some traces. As I am in a shutdown process, I don't want the AsyncAppender to be operational in the sh

Log4j's UI

2002-04-04 Thread hello
thanks This message was posted using eunum --- http://www.cn.eunum.com/ To interact with a real-time, threaded interface to this e-mail list, go visit the link The Log4j User List below: http://www.cn.eunum.com/discussions/2-480.html . -- To unsubscribe, e-mail: Fo

Loggin into a DB.

2002-04-04 Thread Han Solo
Hi: I started to use the Log4J and I would like to know if it is possible to use it to log into a database instead of a filesystem? Regads Francisco Jaen Alegria __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax htt