Most appender support the BufferSize property which
does exactly what you describe. Beware that in order
to ensure that the buffer get cleared when the system
exits, you generally have to make a call to
LogManager.shutdown().
--- Alan Brown <[EMAIL PROTECTED]> wrote:
> I'd like to only log debugg
can then be set in your config
file by specifying the class name in a param called
EvaluatorClass.
Best of Luck,
Ken Hoying
--- Mandar Mangalvedhekar
<[EMAIL PROTECTED]> wrote:
> Yes, I need to send email messages for level INFO
>
> I have set the threshold level in the appender
The SMTPAppender only send email by default for
messages of level error or higher. Are you trying to
email log messages of a lower level than this?
--- Mandar Mangalvedhekar
<[EMAIL PROTECTED]> wrote:
>
> Here is what is happening.
>
> I have a Emailer (logger name) and I am adding
> FileAppend
Try setting the Threshold for the JDBC Appender to
Error:
log4j.appender.R.Threshold=ERROR
--- "Yu Xiang Xi (Maveo)" <[EMAIL PROTECTED]>
wrote:
> How do you initial a logger in your java code?
> It will use different loggers depends on that.
> Anymore, the below parameters are useful for config
I ran into the same problem with another buffered
appender. It appears what you need to do is call the
LogManager.shutdown() method before your application
exits to clear the buffer.
--- Francis Le Monnier
<[EMAIL PROTECTED]> wrote:
> Simple scenario:
>
> instantiate logger and appender vars; ad
> closed upon shutdown. You can try to add a
> shutdown-hook that manually
> conducts this for your partiular appender (see
> java.lang.Runtime.addShutdownHook), but read the
> documentation carefully.
>
> --
>
> Thomas
>
>
> | -Original Message-
&g
I have a custom appender that allows for the buffering
of messages. However, the messages left in the buffer
when the application finishes are not gettign logged.
It appears that the close() method is not getting
called.
Any ideas or help would be greatly appreciated.
Thanks,
Ken
_
Complete Log4j Manual" is an excellent
> source for this.
>
> cheers,
>
> Paul
>
> On Fri, 2003-10-10 at 01:17, Ken Hoying wrote:
> > Ok. I seem to have the SMTP Appender working now
> but
> > it seems to be ignoring my Threshold property
> setting.
> &
Ok. I seem to have the SMTP Appender working now but
it seems to be ignoring my Threshold property setting.
I want to test by sending DEBUG messages to teh SMTP
appender. However, it seems to be ignoring these. Is
this a bug?
Thanks,
Ken
__
Do you Yahoo!?
The N
I cannot seem to get the SMTP Appender to work. It is
almost like it is not even being loaded by LOG4J. I
say this because I get no errors or exceptions and
that was before I even added the JavaMail and the JAF
classes to my class path.
Is there a property I can set to get debug information
from
10 matches
Mail list logo