Actually the latest master branch now breaks many more of our test cases, i.e. 
the situation has gotten even worse.

On 09/12/2016 09:35 AM, Steffen Offermann (JIRA) wrote:

    [ 
https://issues.apache.org/jira/browse/LOG4J2-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15483370#comment-15483370
 ]

Steffen Offermann commented on LOG4J2-1573:
-------------------------------------------

The problem still exists with the latest {{master}}, and removing the 
{{@Required}} annotation from the field {{layout}} in 
{{AbstractAppender.Builder}} breaks at least half of our test-cases.



Layout is no longer optional
----------------------------

                Key: LOG4J2-1573
                URL: https://issues.apache.org/jira/browse/LOG4J2-1573
            Project: Log4j 2
         Issue Type: Bug
         Components: Appenders
   Affects Versions: 2.7
           Reporter: Steffen Offermann
           Priority: Minor

This configuration used to work in 2.6.2:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
   <Appenders>
      <Console name="myConsole" target="SYSTEM_OUT"/>
      <Async name="myConsoleAsync">
         <AppenderRef ref="myConsole" />
      </Async>
   </Appenders>
   <Loggers>
      <AsyncRoot level="info" />
   </Loggers>
</Configuration>
{code}
With the current {{master}} (i.e. the upcoming 2.7) this does not work any more. The 
validator complains because the field "layout" is missing in
{code:xml}
 <Console name="myConsole" target="SYSTEM_OUT" />
{code}
According to the current documentation this is a bug:
||Parameter Name||Type||        Description||
| layout | Layout | The Layout to use to format the LogEvent. If no layout is supplied 
the default pattern layout of "%m%n" will be used.
With this configuration it works:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
   <Appenders>
      <Console name="myConsole" target="SYSTEM_OUT">
         <DetailsLayout/>
      </Console>
      <Async name="myConsoleAsync">
         <AppenderRef ref="myConsole" />
      </Async>
   </Appenders>
   <Loggers>
      <AsyncRoot level="info" />
   </Loggers>
</Configuration>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



--
aixigo AG - financial solutions & technology
Karl-Friedrich-Straße 68, 52072 Aachen, Germany
fon: +49 (0)241 559709-65, fax: +49 (0)241 559709-99
eMail: steffen.offerm...@aixigo.de, web: http://www.aixigo.de

Amtsgericht Aachen - HRB 8057
Vorstand: Erich Borsch, Christian Friedrich, Tobias Haustein
Vors. des Aufsichtsrates: Prof. Dr. Rüdiger von Nitzsch

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

Reply via email to