smtpappender including INFO messages

I have my logger configured (theoretically) to only send emails when error events are received, which seems to be working, except that the content of the email not only includes the ERROR event, but any INFO events leading up to that event. I don't want *anything* but the logged ERROR event in the email. How do I remove all of this? Chris

Hi Chris, You can set the value of the BufferSize property to 1. See also http://logback.qos.ch/manual/appenders.html#SMTPAppender HTH, Chris Cheshire wrote:
I have my logger configured (theoretically) to only send emails when error events are received, which seems to be working, except that the content of the email not only includes the ERROR event, but any INFO events leading up to that event. I don't want *anything* but the logged ERROR event in the email. How do I remove all of this?
Chris
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

I tried this (and zero too), and it still includes 1 INFO message prior to the ERROR. On Fri, Nov 28, 2008 at 12:57 PM, Ceki Gulcu <listid@qos.ch> wrote:
Hi Chris,
You can set the value of the BufferSize property to 1. See also http://logback.qos.ch/manual/appenders.html#SMTPAppender
HTH,
Chris Cheshire wrote:
I have my logger configured (theoretically) to only send emails when error events are received, which seems to be working, except that the content of the email not only includes the ERROR event, but any INFO events leading up to that event. I don't want *anything* but the logged ERROR event in the email. How do I remove all of this?
Chris
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user

My apologies, it helps when the new config file is included in the build before it is uploaded! The buffer size of 1 appears to be working now. Thanks :) On Fri, Nov 28, 2008 at 1:38 PM, Chris Cheshire <cheshirator@gmail.com> wrote:
I tried this (and zero too), and it still includes 1 INFO message prior to the ERROR.
On Fri, Nov 28, 2008 at 12:57 PM, Ceki Gulcu <listid@qos.ch> wrote:
Hi Chris,
You can set the value of the BufferSize property to 1. See also http://logback.qos.ch/manual/appenders.html#SMTPAppender
HTH,
Chris Cheshire wrote:
I have my logger configured (theoretically) to only send emails when error events are received, which seems to be working, except that the content of the email not only includes the ERROR event, but any INFO events leading up to that event. I don't want *anything* but the logged ERROR event in the email. How do I remove all of this?
Chris
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://qos.ch/mailman/listinfo/logback-user

Hi Chris, Thank you for getting back to us with this information. Chris Cheshire wrote:
My apologies, it helps when the new config file is included in the build before it is uploaded! The buffer size of 1 appears to be working now.
Thanks :)
On Fri, Nov 28, 2008 at 1:38 PM, Chris Cheshire <cheshirator@gmail.com> wrote:
I tried this (and zero too), and it still includes 1 INFO message prior to the ERROR. -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

FYI: I've made submissions to EclipseCon 2009 in two of my sessions https://www.eclipsecon.org/submissions/2009/view_talk.php?id=392 https://www.eclipsecon.org/submissions/2009/view_talk.php?id=393 I'll talk about logging in OSGI enterprise applications, where I'm using slf4j + logback as solution ekke

Hello, Some conferences can be extremely competitive with few submissions making it. However, I hope your submission(s) do get accepted. I am keeping my fingers crossed. ekkehard wrote:
FYI: I've made submissions to EclipseCon 2009 in two of my sessions https://www.eclipsecon.org/submissions/2009/view_talk.php?id=392 https://www.eclipsecon.org/submissions/2009/view_talk.php?id=393 I'll talk about logging in OSGI enterprise applications, where I'm using slf4j + logback as solution
ekke -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

Ceki Gulcu schrieb:
Hello,
Some conferences can be extremely competitive with few submissions making it. However, I hope your submission(s) do get accepted. I am keeping my fingers crossed.
thx, ceki I'll let you know what happens... ekke
ekkehard wrote:
FYI: I've made submissions to EclipseCon 2009 in two of my sessions https://www.eclipsecon.org/submissions/2009/view_talk.php?id=392 https://www.eclipsecon.org/submissions/2009/view_talk.php?id=393 I'll talk about logging in OSGI enterprise applications, where I'm using slf4j + logback as solution
ekke
participants (3)
-
Ceki Gulcu
-
Chris Cheshire
-
ekkehard