[logback-user] Configure logback to dump debug info when an error occurs?

2011-01-26 Thread Satish Kumar
Hi,

We currently use log4j and logging level in our production environment is
set to ERROR, but in some cases having debug messages would help us in
identifying the root causes of the errors.  So wondering if it is possible
to configure logback to dump debug info when an error occurs?

My needs are the same as the one posted on stackoverflow:
http://stackoverflow.com/questions/690431/how-to-configure-log4j-to-dump-debug-info-when-an-error-occurs

Is there an appender in logback that provides this feature?


Thanks,
Satish
___
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user


[logback-user] DBNameResolver

2011-01-26 Thread Roy Cronise
I am trying to use a DBNameResolver I've nbsp;written with DBAppender. 
nbsp;My tables and column names must be different than the default.
I'm having an issue in the class DBAppenderBase since it looks like the 
EVENT_ID column name is used if generated keys are supported and doesn't use 
the name resolver.
I couldn't find an open issue for this. nbsp;Is it a bug?
Roy


___
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user


Re: [logback-user] DBNameResolver

2011-01-26 Thread Merritt H Derr
Roy:

I've not looked at this in detail just now, but the SQL strings that are 
used to write to the databases are built in the SQLBuilder class methods 
called from the DBAppender start method. They seem  make use of the 
EVENT_ID name through the name resolver while doing so. DBAppenderBase 
doesn't appear to me to be in that loop.

Hope this helps.

Merritt



From:   Roy Cronise sw...@ccyor.com
To: logback-user@qos.ch logback-user@qos.ch
Date:   01/26/2011 03:37 PM
Subject:[logback-user] DBNameResolver
Sent by:logback-user-boun...@qos.ch



I am trying to use a DBNameResolver I've  written with DBAppender.  My 
tables and column names must be different than the default.
I'm having an issue in the class DBAppenderBase since it looks like the 
EVENT_ID column name is used if generated keys are supported and doesn't 
use the name resolver.
I couldn't find an open issue for this.  Is it a bug?
Roy
___
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user


Join us on Facebook at www.facebook.com/NYCMInsurance.


***CONFIDENTIALITY NOTICE***
This email and any attachments to it are confidential and intended solely 
for the individual or entity to whom it is addressed. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you have 
received this email in error, please contact the sender by reply email and 
destroy all copies of the original message. 


___
Logback-user mailing list
Logback-user@qos.ch
http://qos.ch/mailman/listinfo/logback-user