Betr: Re: JDBCAppender fails to pass connection URL string

2019-12-13 Thread Alban Hertroys
ariation on my previous Java class, so we are able to connect at least - now to figure out why the actual webapp is not logging anything... Should be easy enough to add a log4j JDBCAppender for my test-webapp. > On Thu, Dec 12, 2019 at 3:54 PM Gary Gregory wrote: > > > On Th

Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Gary Gregory
such as this case where we're wrapping a > >> servlet to have some logging of HTTP context information to a database > >> table. > >> > >> There's no requirement here to do the logging through JNDI either; we > used > >> a direct connection th

Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Gary Gregory
; don't write Java code on a regular basis. Just created a few snippets >> to >> >> do small stuff here and there, such as this case where we're wrapping a >> >> servlet to have some logging of HTTP context information to a database >> >> table. &g

Re: Betr: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Ralph Goers
of how to use them but they should be straightforward. Ralph > On Dec 12, 2019, at 9:20 AM, Alban Hertroys > wrote: > > "Ralph Goers" wrote on 2019-12-12 16:00:02: > >> http://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender < >> ht

Betr: Betr: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Alban Hertroys
t;Context contains " + rows + " items."); } } "Alban Hertroys" wrote on 2019-12-12 17:20:26: > Van: "Alban Hertroys" > Aan: "Log4J Users List" > Datum: 2019-12-12 17:20 > Onderwerp: Betr: Re: JDBCAppender fails to pass connectio

Betr: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Alban Hertroys
"Ralph Goers" wrote on 2019-12-12 16:00:02: > http://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender < > http://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender > > does have sample configurations but there is not one with the > configu

Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Ralph Goers
http://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender <http://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender> does have sample configurations but there is not one with the configuration I would expect to use where you can specify the driver class, user na

Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Ralph Goers
>> >> There's no requirement here to do the logging through JNDI either; we used >> a direct connection through log4j.xml previously and that had some issues >> (mostly losing connection when the DB server got kicked). JNDI just seemed >> to be the easiest way to se

Re: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Matt Sicker
on to a database > table. > > There's no requirement here to do the logging through JNDI either; we used > a direct connection through log4j.xml previously and that had some issues > (mostly losing connection when the DB server got kicked). JNDI just seemed > to be the eas

Re: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Alban Hertroys
d to be the easiest way to set up a connection pool for the JDBCAppender, but now it's starting to look like JNDI is anything but. Regards, Alban. > On Tue, Dec 10, 2019, 06:02 Alban Hertroys < > alban.hertr...@apollovredestein.com> wrote: > > > Hi, > > > > We&#x

Re: JDBCAppender fails to pass connection URL string

2019-12-11 Thread Gary Gregory
trouble getting the JDBCAppender to write to our > PostgreSQL database. There's probably a configuration error somewhere, but > we haven't been able to find it. And I have been searching and trying for > several days now, with no progress at all. > Even though we specify a connect

JDBCAppender fails to pass connection URL string

2019-12-10 Thread Alban Hertroys
Hi, We're having a lot of trouble getting the JDBCAppender to write to our PostgreSQL database. There's probably a configuration error somewhere, but we haven't been able to find it. And I have been searching and trying for several days now, with no progress at all. Even thou

Re: Fetch message values in JDBCAppender

2017-10-08 Thread gaurav9...@gmail.com
: 06-Oct-2017 02:19 > > Subject: Fetch message values in JDBCAppender > > To: > > Cc: > > > > Hi log4j2 users, > > > > I have created custom-message implementing 'message' interface. > > > > I have also created JDBCAppender which writ

Re: Fetch message values in JDBCAppender

2017-10-06 Thread Matt Sicker
Can you post your config and log4j version? On 6 October 2017 at 00:25, gaurav deshpande wrote: > Please help > -- Forwarded message -- > From: "gaurav deshpande" > Date: 06-Oct-2017 02:19 > Subject: Fetch message values in JDBCAppender > To: >

Fwd: Fetch message values in JDBCAppender

2017-10-05 Thread gaurav deshpande
Please help -- Forwarded message -- From: "gaurav deshpande" Date: 06-Oct-2017 02:19 Subject: Fetch message values in JDBCAppender To: Cc: Hi log4j2 users, I have created custom-message implementing 'message' interface. I have also created JDBCAppender whic

Re: Fetch message values in JDBCAppender

2017-10-05 Thread gaurav deshpande
Please help On 06-Oct-2017 02:19, "gaurav deshpande" wrote: > Hi log4j2 users, > > I have created custom-message implementing 'message' interface. > > I have also created JDBCAppender which writes values from above message to > database table. > > Bu

Fetch message values in JDBCAppender

2017-10-05 Thread gaurav deshpande
Hi log4j2 users, I have created custom-message implementing 'message' interface. I have also created JDBCAppender which writes values from above message to database table. But how do I get the value from custom message and store it into databse? I've tried pattern attribute in

Help me with JDBCAppender

2015-03-07 Thread lsjun
I want to logging to mysql , and I find this link in apache : /http://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender/ But the java code have an error in my eclipse just like this : /The type GenericObjectPool is not generic; it cannot be parameterized with

Re: Commit errors using log4j2 JDBCAppender with DB2 in WebSphere Liberty Profile

2014-11-21 Thread Remko Popma
at 1:18, Dave Westerman wrote: > > I am trying to use the log4j2 JDBCAppender in my JEE application in > WebSphere Liberty Profile with a DB2 DataSource. I'm wondering if I have a > configuration error, because I am seeing the following error in my log: > > Caused by: java.sq

Commit errors using log4j2 JDBCAppender with DB2 in WebSphere Liberty Profile

2014-11-21 Thread Dave Westerman
I am trying to use the log4j2 JDBCAppender in my JEE application in WebSphere Liberty Profile with a DB2 DataSource. I'm wondering if I have a configuration error, because I am seeing the following error in my log: Caused by: java.sql.SQLException: DSRA9350E: Operation Connection.commit i

Re: Log4j2: Column casting in JDBCAppender

2013-08-22 Thread Gary Gregory
On Thu, Aug 22, 2013 at 6:32 PM, Nick Williams < nicho...@nicholaswilliams.net> wrote: > Well we don't need what's currently provided with those legacy classes, > because a different approach was taken with this JDBCAppender to handle ID > columns. > > I have seve

Re: Log4j2: Column casting in JDBCAppender

2013-08-22 Thread Nick Williams
Well we don't need what's currently provided with those legacy classes, because a different approach was taken with this JDBCAppender to handle ID columns. I have several problems with this approach: 1) The implementation would be far more complicated, because the dialects would

Re: Log4j2: Column casting in JDBCAppender

2013-08-22 Thread Scott Deboy
n descending order of how much effort it will require: >>> >>> 1) Submit a patch to PGSQL's JDBC driver and lobby for its acceptance. >>> 2) Switch to a database vendor that's less [insert insulting word here] >>> about its enum casting--like any of the

Re: Log4j2: Column casting in JDBCAppender

2013-08-22 Thread Nick Williams
is MySQL. >> 3) Stop using a database enum column. >> >> :-/ >> >> Nick >> >> [1] >> http://www.postgresql.org/message-id/cappfruyta0a0xghg4zh785ss0_fz8gczzcjzgxo2yfphadx...@mail.gmail.com >> >> On Aug 22, 2013, at 4:12 PM, Peter Rifel wro

Re: Log4j2: Column casting in JDBCAppender

2013-08-22 Thread Scott Deboy
atabase enum column. > > :-/ > > Nick > > [1] > http://www.postgresql.org/message-id/cappfruyta0a0xghg4zh785ss0_fz8gczzcjzgxo2yfphadx...@mail.gmail.com > > On Aug 22, 2013, at 4:12 PM, Peter Rifel wrote: > >> Hello, >> >> I'm wondering if it is at

Re: Log4j2: Column casting in JDBCAppender

2013-08-22 Thread Nick Williams
age-id/cappfruyta0a0xghg4zh785ss0_fz8gczzcjzgxo2yfphadx...@mail.gmail.com On Aug 22, 2013, at 4:12 PM, Peter Rifel wrote: > Hello, > > I'm wondering if it is at all possible to cast columns to a certain type (a > custom enum) with the JDBCAppender. I have an existing Postgre

Log4j2: Column casting in JDBCAppender

2013-08-22 Thread Peter Rifel
Hello, I'm wondering if it is at all possible to cast columns to a certain type (a custom enum) with the JDBCAppender. I have an existing PostgreSQL database that I send all warnings and errors to and the log level is currently being stored as an enum. When I try and log to the datab

Re: Error in JDBCAppender when used with tomcat6 and log4j2

2013-07-28 Thread gokulvsmail
On Sunday 28 July 2013 08:17 PM, Nick Williams wrote: Please paste your log4j2.xml/json config file. All of the information you have given is helpful, but it's not quite enough. Nick On Jul 2

Re: Error in JDBCAppender when used with tomcat6 and log4j2

2013-07-28 Thread Nick Williams
Please paste your log4j2.xml/json config file. All of the information you have given is helpful, but it's not quite enough. Nick On Jul 28, 2013, at 9:44 AM, gokulvsmail wrote: > hi, > when i am trying to use the jdbcappender..am getting the error as > No suitable driver found

Error in JDBCAppender when used with tomcat6 and log4j2

2013-07-28 Thread gokulvsmail
hi, when i am trying to use the jdbcappender..am getting the error as No suitable driver found in the Tomcat startup am using log4j2 Tomcat 6.0.37 servlet 2.5, jre 1.6 db mysql I put the mysql-connector-bin_5.1.jar at the tomcat/lib am still getting the same error Seeking hlep from the

Re: Connection leak with JDBCAppender

2013-07-27 Thread Nick Williams
Williams > wrote: > >> Yes, this is the intended behavior, and a false-positive on the part of the >> leak detection. >> >> If the JDBCAppender has to open and close a connection and prepare the same >> statement for each logging event (even if it just has to b

Re: Connection leak with JDBCAppender

2013-07-26 Thread Gary Gregory
k detection. > > If the JDBCAppender has to open and close a connection and prepare the same > statement for each logging event (even if it just has to borrow a connection > from a pool and prepare the same statement for each logging event), this > could significantly slow down the p

Re: Connection leak with JDBCAppender

2013-07-26 Thread Nick Williams
Yes, this is the intended behavior, and a false-positive on the part of the leak detection. If the JDBCAppender has to open and close a connection and prepare the same statement for each logging event (even if it just has to borrow a connection from a pool and prepare the same statement for

Connection leak with JDBCAppender

2013-07-26 Thread Scott Lemke
Hello, I'm working on using the JDBCAppender and am seeing a leaked connection. I'm using Glassfish 3.1 with Jersey and Oracle using a JNDI connection for log4j. In my test app just doing a single log will reach the database fine, but then I get the leaked connection warning from Gla

RE: JDBCAppender problem

2010-09-05 Thread Yogesh Rao
.com] Sent: Saturday, September 04, 2010 5:31 AM To: log4j-user@logging.apache.org Subject: JDBCAppender problem Hi all, I have a requirement to put some logs from my application into DB. My app. is based on PostgreSQL 8.4, so this is the targeted database. I have Maven2 Java project, and projec

RE: JDBCAppender

2009-10-02 Thread Michael Erskine
> From: Green, Kay [mailto:kay.gr...@mckesson.com] > WARNING: This version of JDBCAppender is very likely to be completely > replaced in the future. Moreoever, it does not log exceptions. > Does anyone know if this appender has been replaced or is in the process > of being re

JDBCAppender

2009-10-01 Thread Green, Kay
WARNING: This version of JDBCAppender is very likely to be completely replaced in the future. Moreoever, it does not log exceptions. Does anyone know if this appender has been replaced or is in the process of being replaced? Thanks for the info Kay Green 11000 Westmoor Circle

RE: Warning in Javadoc of JDBCAppender

2009-05-01 Thread Michael Erskine
> WARNING: This version of JDBCAppender is very likely to be completely replaced > in the future. Moreoever, it does not log exceptions. > > Is this warning still accurate? The latest version of 1.2 is almost 2 years > old ... is JDBCAppender going to be replaced one day? I'm

Warning in Javadoc of JDBCAppender

2009-04-30 Thread Matt Brown
The Javadoc for the 1.2 version of JDBCAppender (at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jdbc/JDBCAppender.html) has a nice big red warning at the top: WARNING: This version of JDBCAppender is very likely to be completely replaced in the future. Moreoever, it does not

JDBCAppender and Webservice Trace

2009-02-22 Thread Krishnaroopa Senthilkumar
Hi We need to log webservice trace to database. We are using JBOSS and hence i configured the jboss_log4j.xml to achieve this. Now, I can log the webservice traces into a file [code] [/code] Now, if i try to replace it with JDBC Appender it is not working. The trace is even getting p

Re: Can we add FileAppender and JDBCAppender together

2008-11-14 Thread manish_goyal
versionPattern=%m log4j.appender.JDBC.bufferSize=4 Please give some suggestion. I would appreciate your suggestion. Thanks. Regards, Manish -- View this message in context: http://www.nabble.com/Can-we-add-FileAppender-and-JDBCAppender-together-tp20497197p205131

Re: Can we add FileAppender and JDBCAppender together

2008-11-14 Thread Curt Arnold
On Nov 14, 2008, at 3:23 AM, manish_goyal wrote: Hi, Please tell me can we add FileAppender and JDBCAppender together in a log4j.properties file. I don't know any reason you could not. I configured my log4j.properties file for both FileAppender and JDBCAppender, FileAppender is wo

Can we add FileAppender and JDBCAppender together

2008-11-14 Thread manish_goyal
Hi, Please tell me can we add FileAppender and JDBCAppender together in a log4j.properties file. I configured my log4j.properties file for both FileAppender and JDBCAppender, FileAppender is working fine but JDBCAppender is not working. My log4j.properties file is :- log4j.rootCategory=JDBC

help need in JDBCAppender

2008-11-12 Thread manish_goyal
Hi, I need help to configure log4j.properties file and java class (which use Logger) for JDBCAppender. Please send the both file or give me some helpful URL . Thanks. Regards, Manish -- View this message in context: http://www.nabble.com/help-need-in-JDBCAppender-tp20456200p20456200.html

Re: JDBCAppender configuration

2008-07-15 Thread Johannes Hoechstaedter
Thorbjørn Ravn Andersen schrieb: Johannes Hoechstaedter skrev den 15-07-2008 16:20: Hi everybody, I am up to build a coocon webapplication, and I am using the JDBCAppender for logging. It works quite well. My only problem is, that when I switch on the loggin in debug mode, my application is

Re: JDBCAppender configuration

2008-07-15 Thread Johannes Hoechstaedter
Michael Erskine schrieb: The JDBCAppender is shoddy anyhow - write yourself a replacement. It's a great way to learn about what makes a good Appender. To follow up: what I tend to do is have a custom JDBC Appender that adds a small custom log entry object (with all interesting info

Re: JDBCAppender configuration

2008-07-15 Thread Thorbjørn Ravn Andersen
Johannes Hoechstaedter skrev den 15-07-2008 16:20: Hi everybody, I am up to build a coocon webapplication, and I am using the JDBCAppender for logging. It works quite well. My only problem is, that when I switch on the loggin in debug mode, my application is as fast as a snail because of

RE: JDBCAppender configuration

2008-07-15 Thread Michael Erskine
> The JDBCAppender is shoddy anyhow - write yourself a replacement. It's a > great way to learn about what makes a good Appender. To follow up: what I tend to do is have a custom JDBC Appender that adds a small custom log entry object (with all interesting info from the LoggingE

RE: JDBCAppender configuration

2008-07-15 Thread Michael Erskine
Johannes Hoechstaedter [mailto:[EMAIL PROTECTED] wrote > I am up to build a coocon webapplication, and I am using the > JDBCAppender for logging. It works quite well. My only problem is, that > when I switch on the loggin in debug mode, my application is as fast as > a snail because

JDBCAppender configuration

2008-07-15 Thread Johannes Hoechstaedter
Hi everybody, I am up to build a coocon webapplication, and I am using the JDBCAppender for logging. It works quite well. My only problem is, that when I switch on the loggin in debug mode, my application is as fast as a snail because of the heavy database traffic. How can I solve that? I

Re: JDBCAppender

2008-05-08 Thread Simonebernardi
)] - JDBCAppender - Sending mail server found on list.dsbl.org Hi all, I have a problem with JDBCAppender. I wrote a configuration file, but the table does not write anything and not give me any errors. why

RE: JDBCAppender

2008-05-08 Thread Bender Heri
Have you attached the appender to any logger? Heri > -Original Message- > From: Simonebernardi [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 08, 2008 12:12 PM > To: log4j-user@logging.apache.org > Subject: [SPAM (DNS Blacklist)] - JDBCAppender - Sending mail se

JDBCAppender

2008-05-08 Thread Simonebernardi
Hi all, I have a problem with JDBCAppender. I wrote a configuration file, but the table does not write anything and not give me any errors. why? value="jdbc:mysql://localhost:3306/sicve

Re: JDBCAppender and DB passwords

2008-04-02 Thread Jacob Kjome
java -Ddb.username=[username] -Ddb.password=[password] 2. You can manually configure using the PropertyConfigurator and pass in variables prior to calling configure() (can't recall the exact API to do this at the moment, but you can look it up). I have't worked with the JDBCAppender

JDBCAppender and DB passwords

2008-04-02 Thread Annie Lane
Hi list, I'm using log4j-1.2.14 and want to play with JDBCAppender. My main concern is the fact that in my log4j.properties file I need to provide the username and password details for the database connection. How can I use JDBCAppender without having to put this information in my .prope

Re: Datasource settings in config file for jdbcappender.

2007-12-06 Thread Curt Arnold
On Dec 5, 2007, at 9:30 PM, srinivas ramgopal wrote: Hi all, A newbie question - Is there a way to avoid hard coding of the database connection values in the JDBCAppender in log4j.xml? In other words, can a datasource be referenced in log4j.xml? Any pointers to code snippets is highly

Datasource settings in config file for jdbcappender.

2007-12-05 Thread srinivas ramgopal
Hi all, A newbie question - Is there a way to avoid hard coding of the database connection values in the JDBCAppender in log4j.xml? In other words, can a datasource be referenced in log4j.xml? Any pointers to code snippets is highly appreciated. Thanks in advance for yout valuable input

JDBCAppender binary for JDK 1.1.x

2007-10-07 Thread Ravinder Singh Ghai
Hi Which log4j binary should I use for database logging to work with JDK 1.1.x? Awaiting your replies... Ravi

JDBCAppender custom fields

2007-06-07 Thread Shah, Tejas
Hello, I am using JDBCAppender to log information into a database. I need to log several custom fields along with logging message and default fields provided by JDBCAppender. I have searched about this issue and found out a post from 2003 which does outline an alternative approach using

Custom fields using Log4j JDBCAppender

2007-06-06 Thread Shah, Tejas
Hello, I am using JDBCAppender to log information into a database. I need to log several custom fields along with logging message and default fields provided by JDBCAppender. I have searched about this issue and found out a post from 2003 which does outline an alternative approach using

JDBCAppender inserts %d instead of the date in the database

2007-05-22 Thread Mohammed_Amin
Hi All, I am trying to use the log4j.jdbcplus.jdbcappender to log my messages to an oracle database. I am not getting any errors and data is being inserted into the database except that instead of actual logs %c, %d, %p and the like are being inserted. I have tried to use the jdbc.jdbcappender

RE: JDBCAppender with large message values

2006-12-19 Thread Mike Miller
e that string rendered somehow??? -Original Message- From: Mattias Andersson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 5:52 AM To: Log4J Users List Subject: Re: JDBCAppender with large message values Hi, > Hi, > > I want to include the JDBCAppender as one of our appenders so

Re: JDBCAppender with large message values

2006-12-19 Thread Mattias Andersson
Hi, > Hi, > > I want to include the JDBCAppender as one of our appenders so that all > error level messages will be written to a common database. The problem is > that the message content frequently contains a stack trace which is too > large for the database column. What I

JDBCAppender with large message values

2006-12-18 Thread Mike Miller
Hi, I want to include the JDBCAppender as one of our appenders so that all error level messages will be written to a common database. The problem is that the message content frequently contains a stack trace which is too large for the database column. What I get right now is a row with the

Re: recovery of JDBCAppender

2006-12-18 Thread Erik Lorimor
while, the DB crashes or the network goes down and the JDBCAppender fails, which is expected. But when the connection is restored, the appender doesn't recover! Have any of you faced this problem before? Are there any configuration-based workarounds? Or is the only way to over

recovery of JDBCAppender

2006-12-18 Thread Prasanth Ramachandran
Hi All, I am using org.apache.log4j.jdbc.JDBCAppender in my app. The app runs on JBoss and I have directly given the DB credentials in log4j.xml. Once in a while, the DB crashes or the network goes down and the JDBCAppender fails, which is expected. But when the connection is restored, the

JDBCAppender: it doesn't reconnect, does it?

2006-11-02 Thread andresgr
Hi. If I have and JDBCAppender configured to throw log messages to MySQL and, while my system is up I restart the database it does not try to reconnect to it, does it? So i end up with my logging system "paralized"... Regards -- -=-=-=-=-=-=-=-=-=-=-=-=- Andrés Gonz

JDBCAppender & Sun App Server

2006-08-30 Thread Erik Lorimor
I've looked through the archives and haven't really found an answer to my problem. I'm logging to a MySQL database using the JDBCAppender. I've written practically no custom code on top of the log4j module, just a loading and unloading of the configuration, and I'm r

JDBCAppender and several log files.

2006-03-09 Thread Alexey Vorobev
Hello, I'm using LogFilePatternReceiver to parse several log files from different applications and import received events into one database table. But it is needed to specify each record with it's appropriate application id. I.e. records received from first log file have id's set to 1 and from

Re: JDBCAppender to MS Access Database

2006-03-07 Thread duvelbier-tsmets
Fowler T. : +32 (0)2 742 05 94 M. : +32 (0)497 44 68 12 @ : [EMAIL PROTECTED] Do you skype too ... ? - Original Message From: "Pitchko, John SCAN" <[EMAIL PROTECTED]> To: log4j-user@logging.apache.org Sent: Monday, March 6, 2006 4:27:52 PM Subject: JDBCAppender to MS Access

JDBCAppender to MS Access Database

2006-03-06 Thread Pitchko, John SCAN
s wants me to save all log messages to a table in the Access database, just like it is now. I haven't had too much luck setting up the JDBCAppender to connect to the Access database. Does anyone know if this is possible? Thanks. John Pitchko Programmer/Analyst Marketing Application Supp

passing value to new column using jdbcappender

2005-06-23 Thread Anindya Bandyopadhyay
Hi All, I'm using log4j JDBCAppender in a web application to log into database. Now I require one new functionality where I need to put the username in log table. I've added a new column in log table called "user" where I'd like to put the username. The username will

RE : RE : TR : A error message with JdbcAppender

2005-06-07 Thread Raoul OPPLIGER
I've copied mysql.jar in the log4j directory ==> NO PROBLEM I don't really understand why java don't used the jar specified in the class. Thanks for your help. Raoul De: Andreas Fester [mailto:[EMAIL PROTECTED] Date: mar. 07.06.2005 20:32 À

Re: RE : TR : A error message with JdbcAppender

2005-06-07 Thread James Stauffer
Probably something like this (I am not positive that this is correct): Since log4j.jar was in your jre dir it was part of boot classloader but your jdbc jar was part of the normal classloader so the log4j classes couldn't see the classes in the normal classloader. Someone please correct me. On 6/

Re: RE : TR : A error message with JdbcAppender

2005-06-07 Thread Andreas Fester
Hi, just to be curious: how can the existence of a user specific jar file (i.e. other than rt.jar, tools.jar etc.) within some jre directory influence class loading behaviour, without being present in some CLASSPATH, -cp or -Xbootclasspath??? Any hint welcome :-) Thanks and best Regards,

RE : TR : A error message with JdbcAppender

2005-06-07 Thread Raoul OPPLIGER
8) at LogTest.main(LogTest.java:7) C:\log4j> Now, there's a problem with the sql but it's another problem. Thanks. Raoul De: Andreas Fester [mailto:[EMAIL PROTECTED] Date: mar. 07.06.2005 16:24 À: Log4J Users List; Raoul OPPLIGER Objet :

Re: TR : A error message with JdbcAppender

2005-06-07 Thread Andreas Fester
Hi, James Stauffer wrote: Is it possibly a classloader issue? It could be that the JDBC driver is loaded by the same classloader as the class that generates the config file but by a different class loader that the code the configures log4j. We tried to track the problem down, and I am current

Re: TR : A error message with JdbcAppender

2005-06-07 Thread James Stauffer
struct the configuration file. > > Regards > > Raoul > > > -Original Message- > From: Andreas Fester [mailto:[EMAIL PROTECTED] > Sent: dimanche 5 juin 2005 19:58 > To: Raoul OPPLIGER > Cc: Log4J Users List > Subject: Re: TR : A error message with JdbcApp

RE: TR : A error message with JdbcAppender

2005-06-05 Thread Raoul OPPLIGER
ation file. Regards Raoul -Original Message- From: Andreas Fester [mailto:[EMAIL PROTECTED] Sent: dimanche 5 juin 2005 19:58 To: Raoul OPPLIGER Cc: Log4J Users List Subject: Re: TR : A error message with JdbcAppender Hi Raoul, just to be sure: - Which operating system are you using (I su

Re: TR : A error message with JdbcAppender

2005-06-05 Thread Andreas Fester
Hi Raoul, just to be sure: - Which operating system are you using (I suppose some flavour of MS-Windows)? - Which java version are you using (java -version)? - Which log4j version are you using? I replaced the logger name in my test program with "system.system" and "system.monitoring" and use

TR : A error message with JdbcAppender

2005-06-05 Thread Raoul OPPLIGER
t of a database. So I use my mysql-connector to access to the database. As I said you before, I don't have problem when all appenders are FileAppender but if one of then is a JdbcAppender, it is impossible to excecute "DOMConfigurator.configure" I work with Oracle JDeveloper 10g

Re: A error message with JdbcAppender

2005-06-04 Thread Andreas Fester
, Andreas Raoul OPPLIGER wrote: I use log4j with a xml configuration file. I don't have problems when I use FileAppender but when I introduce a jdbcAppender in my config file class="org.apache.log4j.jdbc.JDBCAppender"> I've the

JDBCAppender issue

2005-05-03 Thread mymail
Ok, I switched over to JDBC logging to my database a couple days ago. Setup the tables in the DB, granted permissions to the DB user, and it all works great...except for a lag time in the login process now. It is taking about 20 seconds to login. The login process is quite simple – takes the in

Re: Problem with JDBCAppender and mySQL

2005-04-27 Thread Hakan Koseoglu
> - Sorry everyone. It was my fault. The database specified below > is a new database that I didn't specifically add my couser to. This is > the reason why it wasn't connecting. I'm not sure what the whole '%' > thing was though. Now it's working and should work fine on my production > host.

Re: Problem with JDBCAppender and mySQL

2005-04-27 Thread Dave Pawson
On Wed, 2005-04-27 at 07:07 +1200, [EMAIL PROTECTED] wrote: > Thanks Dave. I thought it was interesting as well... I just tried using > 'root' and the password for the root user in mySQL and it works. I'm not > going to have access to the root user on my production host, so how can I > get aroun

Re: Problem with JDBCAppender and mySQL

2005-04-26 Thread mymail
Thanks Dave. I thought it was interesting as well... I just tried using 'root' and the password for the root user in mySQL and it works. I'm not going to have access to the root user on my production host, so how can I get around this? Both the Tomcat server and the mySQL server are on the same

Re: Problem with JDBCAppender and mySQL

2005-04-26 Thread Dave Pawson
On Wed, 2005-04-27 at 06:06 +1200, [EMAIL PROTECTED] wrote: > Log4j.appender.orgco.URL=jdbc:mysql://localhost:3306/logs?autoReconnect=true > Log4j.appender.orgco.User=couser > Log4j.appender.orgco.Password=password > Log4j.appender.orgco.Sql=INSERT INTO mylog (level) VALUES (â%5pâ) > [t

Problem with JDBCAppender and mySQL

2005-04-26 Thread mymail
Hello. I’m a fairly new user and have over the last 6 months been using a RollingFileAppender. Works fine but I’ve run across some problems with having a version of the log4j.properties file on my development system (Windows) and one on the production (Linux). Anyway, I’m trying to eliminate tho

Re: JDBCAppender replacement

2005-04-05 Thread James Stauffer
oice is to use another JDBCAppender implementation. The > JDBCAppender that comes with log4j does not use PreparedStatement, and this > is a poor practice with JDBC. > > Lenin David Lozano Argel > Analista Arquitectura Informática > Gerencia de Desarrollo > Suramericana S.A. >

RE: JDBCAppender replacement

2005-04-05 Thread Lenin David Lozano Argel
I guess that the choice is to use another JDBCAppender implementation. The JDBCAppender that comes with log4j does not use PreparedStatement, and this is a poor practice with JDBC. Lenin David Lozano Argel Analista Arquitectura InformÃtica Gerencia de Desarrollo Suramericana S.A. Email: [EMAIL

Re: JDBCAppender replacement

2005-04-05 Thread James Stauffer
gt; 1.3 has a replacement (DBAppender). > > On Apr 5, 2005 11:09 AM, John Ferron <[EMAIL PROTECTED]> > wrote: > > I'm curious as to when the JDBCAppender class is slated to be > replaced > > in the current implemenation of Log4j. I saw that there is an > >

Re: JDBCAppender replacement

2005-04-05 Thread John Ferron
And when is 1.3 going to be a stable production release? >>> [EMAIL PROTECTED] 4/5/2005 11:22:11 AM >>> 1.3 has a replacement (DBAppender). On Apr 5, 2005 11:09 AM, John Ferron <[EMAIL PROTECTED]> wrote: > I'm curious as to when the JDBCAppender class is slated

Re: JDBCAppender replacement

2005-04-05 Thread James Stauffer
1.3 has a replacement (DBAppender). On Apr 5, 2005 11:09 AM, John Ferron <[EMAIL PROTECTED]> wrote: > I'm curious as to when the JDBCAppender class is slated to be replaced > in the current implemenation of Log4j. I saw that there is an > implemention by http://www.dankom

JDBCAppender replacement

2005-04-05 Thread John Ferron
I'm curious as to when the JDBCAppender class is slated to be replaced in the current implemenation of Log4j. I saw that there is an implemention by http://www.dankomannhaupt.de/projects/. I was just curious as to what I should be using. I would like to be using the log4j implemention

RE: JDBCAppender help

2005-02-09 Thread Harper, Allen \(AHARPER\)
Thank you! Al -Original Message- From: WYNIWYG MOUAWAD Philippe (CAMPUS) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 11:44 AM To: Log4J Users List Subject: RE: JDBCAppender help http://www.dankomannhaupt.de/projects/ -Original Message- From: Harper, Allen

RE: JDBCAppender help

2005-02-09 Thread WYNIWYG MOUAWAD Philippe \(CAMPUS\)
http://www.dankomannhaupt.de/projects/ -Original Message- From: Harper, Allen (AHARPER) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 6:42 PM To: Log4J Users List Subject: JDBCAppender help Can anyone please send me an example using the current implementation of the

JDBCAppender help

2005-02-09 Thread Harper, Allen \(AHARPER\)
Can anyone please send me an example using the current implementation of the JDBCAppender class. Please include everything I need to do a table entry, PatternLayout strings, JDBCAppender Setup etc. Thanks much. Al Harper - To

limitations of JDBCAppender..

2004-09-07 Thread Amit Nigam
Hi, Can anyone tell me if JDBCAppender is database specific, like it can work with only Oracle and DB2 but not with other DB?? Any pointers to docs on limitations on database logging using log4j will be very helpful. Thanx, Amit

RE: Hostname or ip using JDBCAppender..

2004-08-31 Thread Scott Deboy
Scott -Original Message- From: Flemming Seerup [mailto:[EMAIL PROTECTED] Sent: Tue 8/31/2004 7:06 AM To: Log4J Users List Cc: Subject: Re: Hostname or ip using JDBCAppender.. You can use MDC to add extra information to Log4j: For each request do: MDC.put(&q

Re: Hostname or ip using JDBCAppender..

2004-08-31 Thread Flemming Seerup
ent servers into the same > table > of the database - using JDBCAppender. But i find that we have only a > limited > set of information like level, timestamp etc. that we can capture.Is there > anyway by which i can push in "hostname or ip" in one column of the table > (

  1   2   >