I want to log only the error in to the db. if I have the code as 
logger.error("object is null " + e.getMessage() , e);

This log only the first part including e.getMessage() but not the Throwable.

 below is my jdbc appender setting. 

    
                
                <param name="ConversionPattern" value="INSERT INTO 
log(log_date, log_level, location, message) VALUES ( '%d{MM/dd/yyyy HH:mm:ss}', 
'%-5p', '%C;%L', '%m' )"/>           
        
 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220946#4220946

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220946
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to