Re: caching...

2003-11-10 Thread Ken Hoying
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

RE: Having mixed loggers in log4j.xml ?

2003-11-10 Thread Ken Hoying
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

RE: Having mixed loggers in log4j.xml ?

2003-11-10 Thread Ken Hoying
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

RE: Problem with multiple appenders.

2003-10-15 Thread Ken Hoying
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

Re: JDBCAppender: finalize - how to ensure all messages are sent to the database?

2003-10-14 Thread Ken Hoying
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

RE: Custom Appender Close() method

2003-10-13 Thread Ken Hoying
> 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

Custom Appender Close() method

2003-10-13 Thread Ken Hoying
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 _

Re: SMTP Appender Threshold

2003-10-09 Thread Ken Hoying
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. > &

SMTP Appender Threshold

2003-10-09 Thread Ken Hoying
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

SMTP Appender

2003-10-09 Thread Ken Hoying
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