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:[email protected]] On Behalf Of mirandes
Sent: Saturday, October 26, 2013 7:23 PM
To: [email protected]
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>[email protected]</from>
    <subject>TESTING: %logger{20} - %m</subject>
    <smtpHost>localhost</smtpHost>
    <to>[email protected]</to>
</appender>

<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
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to