DBAppender - can I use my own tables?

Hello everyone - I wanted to use the logback DBAppender but in the documentation it says that it logs to a set of 3 specific tables. Is it possible to change the tables and use some other ones? Nadia

On 22 December 2011 17:44, Nadia Kunkov <nkunkov@escholar.com> wrote:
Hello everyone – I wanted to use the logback DBAppender but in the documentation it says that it logs to a set of 3 specific tables.
Is it possible to change the tables and use some other ones?
No; the table names are hard coded in to the source (https://github.com/ceki/logback/blob/master/logback-access/src/main/java/ch/...) Greg

Hi Greg, You are right for logback-access' DBAppender, logback-classic's DBAppender uses a DBNameResolver where the table names and column names can be customized. On 23.12.2011 10:11, Greg Thomas wrote:
On 22 December 2011 17:44, Nadia Kunkov<nkunkov@escholar.com> wrote:
Hello everyone – I wanted to use the logback DBAppender but in the documentation it says that it logs to a set of 3 specific tables.
Is it possible to change the tables and use some other ones?
No; the table names are hard coded in to the source (https://github.com/ceki/logback/blob/master/logback-access/src/main/java/ch/...)
Greg
-- Ceki http://twitter.com/#!/ceki

On 23.12.2011 11:02, ceki wrote:
Hi Greg,
You are right for logback-access' DBAppender, logback-classic's DBAppender uses a DBNameResolver where the table names and column names can be customized.
Forgot to send the link for logback-classic's DBAppender: http://goo.gl/22nQm -- Ceki http://twitter.com/#!/ceki

Thank you! I'll try DBNameResolver then. Nadia -----Original Message----- From: logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] On Behalf Of ceki Sent: Friday, December 23, 2011 5:04 AM To: logback users list Subject: Re: [logback-user] DBAppender - can I use my own tables? On 23.12.2011 11:02, ceki wrote:
Hi Greg,
You are right for logback-access' DBAppender, logback-classic's DBAppender uses a DBNameResolver where the table names and column names can be customized.
Forgot to send the link for logback-classic's DBAppender: http://goo.gl/22nQm -- Ceki http://twitter.com/#!/ceki _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Just incase you want to override column names too, the EVENT_ID column name is hardcoded and can't be overridden with DBNAMERESOLVER if using generated keys. On Dec 23, 2011 9:13 AM, "Nadia Kunkov" <nkunkov@escholar.com> wrote:
Thank you! I'll try DBNameResolver then.
Nadia
-----Original Message----- From: logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] On
Behalf Of ceki
Sent: Friday, December 23, 2011 5:04 AM To: logback users list Subject: Re: [logback-user] DBAppender - can I use my own tables?
On 23.12.2011 11:02, ceki wrote:
Hi Greg,
You are right for logback-access' DBAppender, logback-classic's DBAppender uses a DBNameResolver where the table names and column names can be customized.
Forgot to send the link for logback-classic's DBAppender:
-- Ceki http://twitter.com/#!/ceki _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

On 23 December 2011 10:02, ceki <ceki@qos.ch> wrote:
Hi Greg,
You are right for logback-access' DBAppender, logback-classic's DBAppender uses a DBNameResolver where the table names and column names can be customized.
You know - I /thought/ that was the case, but when I checked the (wrong) source I assumed I had make a mistake. Just goes to prove; if you want the right answer to something, just post something that is obviously wrong ;) Greg
participants (4)
-
ceki
-
Greg Thomas
-
Nadia Kunkov
-
Roy Cronise