

Struts2フレームワークを利用したWebアプリケーションにてStruts2.3→Struts2.5へバージョンアップ（同時にlog4j→log4j2）後、eclipse（mavenプロジェクト）でデバッグ実行（tomcat起動）したところ、コンソールに下記エラーが出てました。  
log4j2.xmlの記述も問題ないと思いますが、エラーが消えません。  
ちなみにlog4j2.xmlで指定したファイルのログは書き出されております。  
エラー内容について何かご存知であればお教え頂けますか？

[code]

    ERROR StatusLogger Unrecognized format specifier [d]
    ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [thread]
    ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [level]
    ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [logger]
    ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [msg]
    ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [n]
    ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
    ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
    ERROR StatusLogger Unrecognized format specifier [d]
    ERROR StatusLogger Unrecognized conversion specifier [d] starting at position 16 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [thread]
    ERROR StatusLogger Unrecognized conversion specifier [thread] starting at position 25 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [level]
    ERROR StatusLogger Unrecognized conversion specifier [level] starting at position 35 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [logger]
    ERROR StatusLogger Unrecognized conversion specifier [logger] starting at position 47 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [msg]
    ERROR StatusLogger Unrecognized conversion specifier [msg] starting at position 54 in conversion pattern.
    ERROR StatusLogger Unrecognized format specifier [n]
    ERROR StatusLogger Unrecognized conversion specifier [n] starting at position 56 in conversion pattern.
    
[/code]

実行環境は下記の通りです。  
【実行環境】  
・eclipse luna 4.4.2  
・CentOS7.3  
・Apache2.4.6  
・Tomcat7.0.69  
・Java1.8.0_131  
・Struts2.5.10.1  
・Spring4.1.6

log4j2は下記ライブラリを使用しております。  
・log4j-core-2.7.jar  
・log4j-api-2.7.jar  
・log4j-web-2.7.jar  
・log4j-1.2-api-2.7.jar

log4j2.xmlは下記の通りです。  
【log4j2.xml】

[code]

    <?xml version="1.0" encoding="UTF-8"?>
    <Configuration status="off">
    <Appenders>
        <Console name="STDOUT" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{yyyy/MM/dd HH:mm:ss.SSS} %-5p %t %m (%F:%L) \r\n"/>
        </Console>
        <RollingFile name="AAA_LOG"
            fileName="/var/log/AAA.log"
            filePattern="/var/log/AAA.log.%d{yyyy-MM-dd}">
            <PatternLayout pattern="%d{yyyy/MM/dd HH:mm:ss.SSS} %-5p %t %m \r\n"/>
                <Policies>
                    <OnstartupTriggeringPolicy />
                    <SizeBasedTriggeringPolicy size="10MB" />
                    <TimeBasedTriggeringPolicy />   
                </Policies>
                <DefaultRolloverStrategy max="10" />
        </RollingFile>
        <RollingFile name="BBB_LOG"
            fileName="/var/log/BBB.log"
            filePattern="/var/log/BBB.log.%d{yyyy-MM-dd}">
            <PatternLayout pattern="%d{yyyy/MM/dd HH:mm:ss.SSS} %-5p %t %m \r\n"/>
                <Policies>
                    <OnstartupTriggeringPolicy />
                    <SizeBasedTriggeringPolicy size="10MB" />
                    <TimeBasedTriggeringPolicy />   
                </Policies>
                <DefaultRolloverStrategy max="10" />
        </RollingFile>        
    </Appenders>
    <Loggers>
        <Logger name="XXX.YYY.ZZZ" level="info" additivity="false">
            <AppenderRef ref="AAA_LOG"/>
        </Logger>        
        <Root level="info">
            <AppenderRef ref="BBB_LOG"/>
        </Root>        
    </Loggers>
    
[/code]


CC BY-SA 4.0
2018-05-30T01:28:12.283
44385
2018-05-30T01:28:12.283
25105
question
java eclipse spring tomcat struts
log4j2にアップデートするとeclipseのコンソールにエラーログが表示されてしまう