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
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
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.
-
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
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
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!
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
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,