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 though we specify a con

Re: JDBCAppender fails to pass connection URL string

2019-12-11 Thread Gary Gregory
AFK, sorry for the top-post. Have you looked at our unit tests? There might be something there to help see what the usage pattern is for JNDI. Gary On Tue, Dec 10, 2019, 06:02 Alban Hertroys < alban.hertr...@apollovredestein.com> wrote: > Hi, > > We're having a lot of trouble getting the JDBCApp

Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Ralph Goers
I just looked at the JDBC unit tests and surprisingly didn’t see any that use a configuration file. Ralph > On Dec 12, 2019, at 7:54 AM, Matt Sicker wrote: > > Unit tests in the log4j project. All our components have examples in unit > tests. > > On Thu, Dec 12, 2019 at 04:26 Alban Hertroys <

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 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 name and

Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Gary Gregory
The more: https://github.com/apache/logging-log4j2/tree/release-2.x/log4j-core/src/test/resources/org/apache/logging/log4j/core/appender/db/jdbc Gary On Thu, Dec 12, 2019 at 3:54 PM Gary Gregory wrote: > On Thu, Dec 12, 2019 at 9:55 AM Ralph Goers > wrote: > >> I just looked at the JDBC unit

Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Gary Gregory
On Thu, Dec 12, 2019 at 9:55 AM Ralph Goers wrote: > I just looked at the JDBC unit tests and surprisingly didn’t see any that > use a configuration file. > Here is a 'fancy' example (the kind of stuff I use at work): https://github.com/apache/logging-log4j2/blob/release-2.x/log4j-jdbc-dbcp2/sr

Re: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Alban Hertroys
"Gary Gregory" wrote on 2019-12-11 22:01:54: > CAUTION : External email. Do not click links or open attachments > unless you recognize the sender and know the content is safe. > > AFK, sorry for the top-post. Have you looked at our unit tests? There might > be something there to help see what

Re: Re: JDBCAppender fails to pass connection URL string

2019-12-12 Thread Matt Sicker
Unit tests in the log4j project. All our components have examples in unit tests. On Thu, Dec 12, 2019 at 04:26 Alban Hertroys < alban.hertr...@apollovredestein.com> wrote: > "Gary Gregory" wrote on 2019-12-11 22:01:54: > > > CAUTION : External email. Do not click links or open attachments > > u

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 > configuration I would expect to use

Betr: Re: JDBCAppender fails to pass connection URL string

2019-12-13 Thread Alban Hertroys
"Gary Gregory" wrote on 2019-12-12 21:54:27: > The more: > > https://github.com/apache/logging-log4j2/tree/release-2.x/log4j- > core/src/test/resources/org/apache/logging/log4j/core/appender/db/jdbc > > Gary Thanks for the examples, much appreciated. It confirmed that I was probably doing th

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

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

2019-12-12 Thread Ralph Goers
No, it doesn’t necessarily mean that. Some of the unit tests configure things programmatically by directly calling the plugins. If you look at the documentation you will see and as connection sources you can configure. You should try that. I don’t know why examples weren’t added to the doc o