[logback-dev] [JIRA] Created: (LBCORE-103) message implicit variable should have a more detailed documentation and usage for the EvaluatorFilter

Johan Bos (JIRA) noreply-jira at qos.ch
Tue Jun 30 16:10:10 CEST 2009


message implicit variable should have a more detailed documentation and usage for the EvaluatorFilter
-----------------------------------------------------------------------------------------------------

                 Key: LBCORE-103
                 URL: http://jira.qos.ch/browse/LBCORE-103
             Project: logback-core
          Issue Type: Improvement
          Components: Appender
    Affects Versions: 0.9.15
         Environment: Windows XP, Java 1.5 Sun JVM, Tomcat 5.0.27
            Reporter: Johan Bos
            Assignee: Logback dev list
            Priority: Trivial


I was expecting "message" implicit variable to contain the full message rendered by the %message or %msg from the pattern, but the recommanded way of logging,
using LOG.debug("I want to log an object {}", object); is only formatted in the event.getFormattedMessage(), event.getMessage <=> message, but only contains the "I want to log an object {}"
so if my matching string for the expression setting for the EvaluatorFilter is the dynamical part I can't never match my string, instead it got "{}".

So, it would be less confusing for users to find in the documentation an explicit information on what message variable contains, and does not contain!

Thank you

I would be happy to explain my point if you find it unclear or irrelevant.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the logback-dev mailing list