[logback-user] SMTPAppender subject PARSER_ERROR

Durchholz, Joachim Joachim.Durchholz at hennig-fahrzeugteile.de
Mon Oct 28 12:27:14 CET 2013

How do you set %fullRequest and %fullResponse?

I'm putting that kind of stuff into the MDC and am using expansions like %mdc{our.logging.package.program:-Prog}. I need to set the MDC to thread-inheriting so that subthreads have the same value.

Alternatively, one could set system properties and use them via %property{our.logging.package.program:-Prog}

-----Original Message-----
From: Logback-user [mailto:logback-user-bounces at qos.ch] On Behalf Of mirandes
Sent: Saturday, October 26, 2013 7:23 PM
To: logback-user at qos.ch
Subject: [logback-user] SMTPAppender subject PARSER_ERROR

Hi, the subject of my SMTPAppender in logback access always displays a %PARSER_ERROR, unless I put plain text in the subject. 

For the subject line:
    <subject>TESTING: %logger{20} - %m</subject>

I'm getting this as subject:

I'm using the 1.0.13 version in Jetty and my logback-access.xml is as

<appender name="SMTP"
    <layout class="ch.qos.logback.access.PatternLayout">
    <Evaluator class="ch.qos.logback.access.net.URLEvaluator">
    <from>blahz at blah.com</from>
    <subject>TESTING: %logger{20} - %m</subject>
    <to>zzz at blah.com</to>

<appender-ref ref="SMTP" />

Any ideas?

View this message in context: http://logback.10977.n7.nabble.com/SMTPAppender-subject-PARSER-ERROR-tp12998.html
Sent from the Users mailing list archive at Nabble.com.
Logback-user mailing list
Logback-user at qos.ch

More information about the Logback-user mailing list