logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raimar Falke (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-1694) Allow to easily add fields with fixed values to JSON output
Date Fri, 11 Nov 2016 18:46:58 GMT
Raimar Falke created LOG4J2-1694:

             Summary: Allow to easily add fields with fixed values to JSON output
                 Key: LOG4J2-1694
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1694
             Project: Log4j 2
          Issue Type: Improvement
          Components: Layouts
            Reporter: Raimar Falke

The Logback JSON Encoder has a feature which allows to specify JSON fields with fixed values.
Link: https://github.com/logstash/logstash-logback-encoder#loggingevent_custom_global

<encoder class="net.logstash.logback.encoder.LogstashEncoder">

This is a very convenient way to specify fixed attributes like application, service or environment.

So far I don't see such a possibility in log4j. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message