
I don't set them. They work automatically by enabling the TeeFilter, as in http://logback.qos.ch/access.html. If they work in the mail body, why don't they work in the subject? Any ideas? On Mon, Oct 28, 2013 at 11:27 AM, Durchholz, Joachim <Joachim.Durchholz@hennig-fahrzeugteile.de> wrote:
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@qos.ch] On Behalf Of mirandes Sent: Saturday, October 26, 2013 7:23 PM To: logback-user@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: TESTING: %PARSER_ERROR[logger] - %PARSER_ERROR[m]
I'm using the 1.0.13 version in Jetty and my logback-access.xml is as follows:
<appender name="SMTP" class="ch.qos.logback.access.net.SMTPAppender"> <layout class="ch.qos.logback.access.PatternLayout"> <encoder> <pattern>%fullRequest%n%n%fullResponse</pattern> </encoder> </layout> <Evaluator class="ch.qos.logback.access.net.URLEvaluator"> <URL>index</URL> </Evaluator> <from>blahz@blah.com</from> <subject>TESTING: %logger{20} - %m</subject> <smtpHost>localhost</smtpHost> <to>zzz@blah.com</to> </appender>
<appender-ref ref="SMTP" />
Any ideas?
-- View this message in context: http://logback.10977.n7.nabble.com/SMTPAppender-subject-PARSER-ERROR-tp12998... Sent from the Users mailing list archive at Nabble.com. _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user _______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user