How to write log using jdbc appender

2006-10-26 Thread ying lcs
hi, Log4j has a jdbc appender. But can i just queue up all the log entries to the disk first. And at the end of the day everyday, It writes to the Database? Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: log4j doesn't log files when a app is running on tomcat host

2006-10-26 Thread Adilson Dias da Silva
OH, OK. It is automatic, i do not call explicitly DOMConfigurator. . it is in dir classes. tks, On 10/26/06, James Stauffer <[EMAIL PROTECTED]> wrote: Automatic: you put log4j.xml in the classpath. Manual: You explicitly call DOMConfigurator Which do you do? On 10/25/06, Adilson Dias da Silv

Header info for rolling back up files

2006-10-26 Thread vincentw
Hi, how can I get some header info into each of the rolling back up files I create? Thanks in advance Vincent -- View this message in context: http://www.nabble.com/Header-info-for-rolling-back-up-files-tf2517167.html#a7020779 Sent from the Log4j - Users mailing list archive at Nabble.com. -

Re: How get e.printStackTrace() text to print to log4j file?

2006-10-26 Thread Maarten Bosteels
catch (Exception e) { logger.error ("something wrong", e); // or logger.debug ("something wrong", e); ... } On 10/26/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote: If I log the e.getStackTrace().toString() it just shows the object hash. How can I get the output of the e.printStackTrace

RE: How get e.printStackTrace() text to print to log4j file?

2006-10-26 Thread Andrews, Trent - 43
Assuming you are in a try catch do something like Try { } catch (Exception e) { logger.error("Error Performing Operation",e); } Trent Andrews [EMAIL PROTECTED] -Original Message- From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 1:40 PM To: Log4

How get e.printStackTrace() text to print to log4j file?

2006-10-26 Thread Mississippi John Hurt
If I log the e.getStackTrace().toString() it just shows the object hash. How can I get the output of the e.printStackTrace() to a log4j file. Thanks!

Re: log4j doesn't log files when a app is running on tomcat host

2006-10-26 Thread James Stauffer
Automatic: you put log4j.xml in the classpath. Manual: You explicitly call DOMConfigurator Which do you do? On 10/25/06, Adilson Dias da Silva <[EMAIL PROTECTED]> wrote: Hi, Jake, Thanks, It is a log4j.xml and it is in \WEB-INF and \classes also. it will be OK in classes but, just in case. auto

Re: Log file per application execution

2006-10-26 Thread Chris Dillon
James Stauffer gmail.com> writes: > Please post it to http://wiki.apache.org/logging-log4j/UsefulCode > On 10/25/06, Chris Dillon gmail.com> wrote: > > ... > > So as a quick hack, I subclassed the FileAppender and overrid the activateOptions() to check for backups. > > > > I does the job for me,