Re: Log4j JDBCAppender

2002-06-05 Thread Kevin Steppe
Jon, Please post to the users list only for this kind of question. Now to answer your question: try: sql=insert into logtable (threads) values ("%t") For most databases you can use either ", or ', for varchar fields. Use the one not in the value. If both are in the value you have to do

Re: JTableAppender anyone? (Alternative)

2002-06-05 Thread Mentzner, Volker
Hi, I have another solution developed for my standalone java gui application. It consists of an appender for swing and awt components like JLabel, JList or JTable and an appender for dialogs. You can use the dialog appender with one of 3 dialog types (all are included: SingleDetailDialog, SimpleL

RE: JMSAppender doubt

2002-06-05 Thread Scott Miller
Please provide more information. What error? What app server? What JDK? What stack trace? ...and so on. But basically it is a factory that creates you an initial naming JNDI naming context. Scott -Original Message- From: Shunmugam, Balajee [mailto:[EMAIL PROTECTED]] Sent: Wednes

RE: JTableAppender anyone?

2002-06-05 Thread Klein, Scott @ TW
ah! didn't see that. thanks. -Original Message- From: Robert Hedin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2:57 PM To: Log4J Users List Subject: Re: JTableAppender anyone? not a big deal but I believe LF5 was donated to apache. checkout the src for log4j: package org.

Re: JTableAppender anyone?

2002-06-05 Thread Robert Hedin
not a big deal but I believe LF5 was donated to apache. checkout the src for log4j: package org.apache.log4j.lf5 rob. - Original Message - From: "Klein, Scott @ TW" <[EMAIL PROTECTED]> To: "'Log4J Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 5:54 PM Subject: RE: JTable

RE: JTableAppender anyone?

2002-06-05 Thread Klein, Scott @ TW
Ceki - just looked at chainsaw, which does what my first inclination was ... just have a socketnode notify the table(model) -- as for LF5 I decompiled a few classes and found some classes that extend SkeletonAppender, but I really don't want to (can't) decompile commercial code and use it in my p

Log4j JDBCAppender

2002-06-05 Thread Jon Wilmoth
What's the quickest/simplest way to filter out quotes from the pattern layout conversion character values? I'm currently getting errors trying to insert the thread (%t) because weblogic produces a string like so: ExecuteThread: '13' for queue: 'default' -- To unsubscribe, e-mail:

RE: JTableAppender anyone?

2002-06-05 Thread Klein, Scott @ TW
Michael - Yes, I've just looked at that one, and previously looked at SvenReimers as well. But, well, I was looking more for one that would compile ;) Oh, and had a class involved that implemented Appender...unless I'm missing something ? -Original Message- From: Michael Roytman [mai

RE: JMSAppender doubt

2002-06-05 Thread Shunmugam, Balajee
Any idea what is the InitialContextFactory class in case of j2ee server ... javax.naming.spi.InitialContextFactory is throwing error ... -Original Message- From: Scott Miller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2:09 PM To: Log4J Users List Subject: RE: JMSAppender do

RE: JTableAppender anyone?

2002-06-05 Thread Ceki Gülcü
Err.. How about chainsaw or LF5? At 16:21 05.06.2002 -0500, you wrote: >There is one already. Look under contribs/CekiGulcu. > >Michael > >-Original Message- >From: Klein, Scott @ TW [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, June 05, 2002 4:10 PM >To: Log4J-User (E-mail) >Subject: JTa

RE: JTableAppender anyone?

2002-06-05 Thread Michael Roytman
There is one already. Look under contribs/CekiGulcu. Michael -Original Message- From: Klein, Scott @ TW [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 4:10 PM To: Log4J-User (E-mail) Subject: JTableAppender anyone? I was curious if anyone out there knows of an Appender exten

JTableAppender anyone?

2002-06-05 Thread Klein, Scott @ TW
I was curious if anyone out there knows of an Appender extension for JTable's? I've looked into LumberMill, but they don't seem to have a specific Appender class for it. Am I wrong to think that this would be fairly easy to do, and also extremely useful? LumberMill has their own TableModel (which

Re: log4j use in multiple tomcat web apps - properties file parsing errors

2002-06-05 Thread Ceki Gülcü
Pat, Good detective work. I find it hard to believe that JDK 1.4 should have a bug in its reflection code although the fact that switching to JDK 1.3 solved the problem comforts the theory of a bug in JDK 1.4. The last time I was confronted with a JDK bug was in 998 or so in IBM's JDK 1.1.6 impl

Re: log4j use in multiple tomcat web apps - properties file parsing errors

2002-06-05 Thread PGuimaraes
Ceki, > Remove log4j.jar from the CLASSPATH and from $JAVA_HOME/jre/lib/ext/ > if that is the case. > > If log4j.jar is not on the CLASSPATH or $JAVA_HOME/jre/lib/ext/ check > also $CATALINA_HOME/common/lib and $CATALINA_HOME/lib. I checked my CLASSPATH and directories $JAVA_HOME/jre/lib/ext, $

RE: JMSAppender doubt

2002-06-05 Thread Scott Miller
No time to go into it all, but I took the JMSAppender that was provided and modified it as follows : Add appender get and set methods for properties InitialContextFactoryName and ContextProviderURL. In my case, they are "IpiInitialContextFactory" and "t3://localhost:7001" (as I am running Weblog

JMSAppender doubt

2002-06-05 Thread Shunmugam, Balajee
Hi All, I am trying to use JMSAppender to handle the clustered environment issues. I have the following doubts which if anyone of you can clarify , that would be a big help to me. 1. How/Where do you specify the server host and port in which the queues are defined ? 2. Should this messaging serv

Re: log4j use in multiple tomcat web apps - properties file parsing errors

2002-06-05 Thread Ceki Gülcü
As far as I can tell, there is only one possible explanation. You have a copy of log4j-XXX.jar in both WEB-INF/lib of your web application as well as on the CLASSPATH or a copy of log4j-XXX.jar is in $JAVA_HOME/jre/lib/ext/ Remove log4j.jar from the CLASSPATH and from $JAVA_HOME/jre/lib/ext/ if

Re: log4j use in multiple tomcat web apps - properties file parsing errors

2002-06-05 Thread PGuimaraes
Sorry, I forgot to attach the file. Are attachments preferred over inline text? Pat __ Hi Ceki, > This is quite similar to the problem reported by Chris Goodall a few > hours ago. Since I just joined this mailing list, I didn't get a copy of Chris Goodall's message. I search

Re: log4j use in multiple tomcat web apps - properties file parsing errors

2002-06-05 Thread PGuimaraes
Hi Ceki, > This is quite similar to the problem reported by Chris Goodall a few > hours ago. Since I just joined this mailing list, I didn't get a copy of Chris Goodall's message. I searched the archives, but could not find any messages sent by him recently. Could you forward his message and y

RE: Log4J & J2EE - Best Practices

2002-06-05 Thread tek1
in general, i would say to use the "jms appender" b/c jms/messaging is an asynchronous process and your method calling the logger to log whatever would not have to wait for the logging operation to complete before continuing, which i believe would be the case with a "jdbc appender". At 09:47

please help me..

2002-06-05 Thread prashant sharma
Hello friends. I'm facing a wierd problem. I'm using Tomcat 4.0.2 and Apache 1.3.20 on redhat 7.2 and latest log4j. I've set the $CATALINA_OPTS="-Dlog4j.configuration=log4j.configure" I'm running two applications ABC and XYZ. When i put log4j.configure file in WEB-INF/classes/ of ABC and XY

Re[2]: logger not working with servlet

2002-06-05 Thread Jacob Kjome
Hello Peter, Well, here's an example that I added to the open source Barracuda project ( http://barracuda.enhydra.org/ ). I'm attaching a zip file that includes the web.xml and the Log4jInit servlet that the Barracuda project uses. The nice thing with this servlet is that is sets up Log4j using

Re: Extending appenders, classpath issues

2002-06-05 Thread Tumpach, Andrew J
Thanks to all who replied. I have not been able to try Ceki's suggestion yet - our admins have not yet upgraded to v 1.2.3. The solution we have agreed on internally is that I will make my extended appender generic enough to be used by others, and independent of any project-specific classes.

Re: log4j use in multiple tomcat web apps - properties file parsing errors

2002-06-05 Thread Ceki Gülcü
This is quite similar to the problem reported by Chris Goodall a few hours ago. First, here are the standard questions: 1) Which version of the JDK are you using? 2) Which version of log4j? The warning message "object is not an instance of declaring class" is not very helpful. In order to get

log4j use in multiple tomcat web apps - properties file parsing errors

2002-06-05 Thread PGuimaraes
Hi, I am running tomcat 4.0.1 on Solaris with two web applications. I recently added log4j code to my applications, and after reading log4j's Short Manual, decided to set up my configuration to use an initialization servlet to initialize log4j, since that's the most flexible way to do it. I put

RE: logger not working with servlet

2002-06-05 Thread Shapira, Yoav
Howdy, > public void init(ServletConfig config) throws ServletException{ > super.init(config); > prefix = getServletContext().getRealPath("/"); > file = getInitParameter("log4j-init-file"); > System.out.println("Prefix: " + p

RE: How do I get off this list?

2002-06-05 Thread Ted Velkoff
Could it be that there's a typo in the instructions. I notice: To unsubscribe, send a message to: <[EMAIL PROTECTED]> ^ | | ??? -Original Message- From: p.j.clijsters [mailto:

RE: How do I get off this list?

2002-06-05 Thread p.j.clijsters
I have the same problem.. Been trying for a week now! Peter -Oorspronkelijk bericht- Van: David Thielen [mailto:[EMAIL PROTECTED]] Verzonden: woensdag 5 juni 2002 15:57 Aan: Log4J Users List Onderwerp: Re: How do I get off this list? It still won't remove me. Could someone PLEASE remov

Re: How do I get off this list?

2002-06-05 Thread Mark E. Zawadzki
Try the contacts at http://apache.org/foundation/contact.html --- David Thielen <[EMAIL PROTECTED]> wrote: > It still won't remove me. Could someone PLEASE remove me?? > > thanks - dave > > > - Original Message - > From: "Ceki Gülcü" <[EMAIL PROTECTED]> > To: "Log4J Users List" <[E

I18n via Renderer

2002-06-05 Thread Colin MacDonald
So, what's the normal way of setting up log4j to display locale-specific messages? I've messed around a bit with creating a Renderer to do it, but I haven't been able to get that to work. The idea was to have a custom Renderer for java.lang.String, so you could have a normal logger call like:

RE: logger not working with servlet

2002-06-05 Thread Peter Choe
i followed the instruction from the log4j documentation and put in my web.xml file the following for the servlet: TallyTeset roster.TallyTest log4j-init-file WEB-INF/classes/roster/log4j-ct.prop 1 and i use the following code

Re: How do I get off this list?

2002-06-05 Thread David Thielen
It still won't remove me. Could someone PLEASE remove me?? thanks - dave - Original Message - From: "Ceki Gülcü" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 4:22 PM Subject: Re: How do I get off this list? Our mail server was down f

java.security.AccessControlException when use log4j in applet

2002-06-05 Thread Daling Xu
Hi, All I am considering using log4j in my project, which is a web-application. I used j2sdk1.4, servlet 2.3 and java plug in 1.4, and log4j 1.2.3. When I use log4j to log informations in the jsp or servlet, every thing is fine, I can write to both the console or a file in the server side. But

RE: logger not working with servlet

2002-06-05 Thread Shapira, Yoav
Howdy, You're probably outputting log4j statements before the log4j system is configured. You need to make sure you call something like PropertyConfigurator.configure(your config file path) before making any log4j statements. A good place to do this is in the init() method of a servlet that you

RE: logger not working with servlet

2002-06-05 Thread Ted Velkoff
The problem is not in the property file, but rather that the servlet doesn't know where to find the property file. There are two parts - making sure the servlet reads the file, and second, telling the servlet where to look. 1) This tells the configurator to read the property file when the servle

Re: ConsoleAppender encoding

2002-06-05 Thread Ceki Gülcü
ConsoleAppender does not support character encoding although adding it should be easy. Just look at the source code of FileAppender class. This is an omission that will be fixed for the next maintenance release of log4j. At 14:06 05.06.2002 +1000, you wrote: >Hi, I'm trying to make console out

RE: Log4J & J2EE - Best Practices

2002-06-05 Thread Nate Drake
Anyone have any thoughts on using the JDBC Appender vs. JMS Appender in a J2EE environment? Thanks, Nate > -Original Message- > From: Steve Ebersole [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 31, 2002 10:01 PM > To: Log4J Users List > Subject: Re: Log4J & J2EE - Best Practices > > >

logger not working with servlet

2002-06-05 Thread Peter Choe
i am trying to log4j to work with a servlet on tomcat4.0 and java1.4 on a solaris intel machine. but when i try to call the servlet to get it to log, i get the following message: log4j:WARN No appenders could be found for logger (roster.TallyTest). log4j:WARN Please initialize the log4j system

RE: DailyRollingFileAppenderExt

2002-06-05 Thread Shapira, Yoav
Howdy, I had a bet with a co-worker that Sara Prigge would be the first to respond with the jar attached. ;) ;) ;) I've been on this list for too long ;) Does the DailyRollingFileAppenderExt need updating for v1.2? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Sa

two different apps are writing into eachothers logfiles

2002-06-05 Thread jan.kemper
hello, i'm new to log4j. i've got the following problem: i have two webapps(app1 and app2) running under tomcat (version 3.2.1). both apps got it's own configuration-file and both are configuered by calling: PropertyConfigurator.configure(strConfigfile); both config-files look like this: log4j.a

RE: Unable to configure RollingAppender on Intel

2002-06-05 Thread Chris . Goodall
Hi Ceki, Thanks for the prompt reply. Sorry should have specified the versions in the original mail : 1) Which version of the JDK are you using? --> java full version "1.4.0-b92" 2) What platform. (OK, you already answered this one.) --> Win 2000 SP2 3) Which version of Tomcat? Are the Tomcat

Re: Unable to configure RollingAppender on Intel

2002-06-05 Thread Ceki Gülcü
What a coincidence. Patricia (Pat) Guimaraes contacted me just yesterday with a similar problem. First, here are the standard questions: 1) Which version of the JDK are you using? 2) What platform. (OK, you already answered this one.) 3) Which version of Tomcat? Are the Tomcat versions the same

Unable to configure RollingAppender on Intel

2002-06-05 Thread Chris . Goodall
Hi, I've got a weird problem on Win 2000/Tomcat config which *does* work under Solaris. I'm using the following config file : # logging DEBUG level and up - using appender 'fileout' to handle all output log4j.rootLogger=debug, fileout # this appender uses an output file log4j.appender.fileout=o

RE: Log4J Wrapping

2002-06-05 Thread Frissaer, Jeroen
Indeed Ceki, what I want to do is this: I would like to modify the Log4J functionality in order for the logging methods (info, debug, warn, error and fatal) to take more parameters (not only message and throwable). To do this I must change multiple intern Log4J methods and the LoggingEvent class

Restricting the number of backup files for DailyRollingFileAppender

2002-06-05 Thread Damith Rajapakse
hi, I'm using DailyRollingFileAppender. Is there a way to specify the max number of backup files to preserve? I know we can do this for RollingFileAppender by setting the MaxBackupIndex property. Is there something similar for DailyRollingFileAppender as well? btw, i take back what i said about