You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2014/04/30 07:50:16 UTC
[jira] [Closed] (LOG4J2-615) Why Rolling file appender writes to
console also.
[ https://issues.apache.org/jira/browse/LOG4J2-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Remko Popma closed LOG4J2-615.
------------------------------
Glad to hear that. I'll close this issue. Feel free to re-open or raise another issue if necessary.
> Why Rolling file appender writes to console also.
> -------------------------------------------------
>
> Key: LOG4J2-615
> URL: https://issues.apache.org/jira/browse/LOG4J2-615
> Project: Log4j 2
> Issue Type: Bug
> Environment: Java 7
> Reporter: sivan
> Priority: Critical
>
> Rolling file appender writes to console also. java 7 is used. The configuration is as below.
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration>
> <properties>
> <property name="patternUMP">${sys:logPattern}</property>
> <property name="filePattern">${sys:logfilepath}//$${date:yyyy-MM}//${sys:oft.appserver}-out-%d{yyyy-MM-dd}.log</property>
> <property name="fileName">${sys:logfilepath}//${sys:oft.appserver}-out.log</property>
> </properties>
> <appenders>
> <RollingFile name="RollingFile" fileName="${fileName}" filePattern="${filePattern}">
> <PatternLayout>
> <pattern>${patternUMP}</pattern>
> </PatternLayout>
> <Policies>
> <TimeBasedTriggeringPolicy />
> <SizeBasedTriggeringPolicy />
> </Policies>
> <DefaultRolloverStrategy compressionLevel="0" max="3"/>
> </RollingFile>
> <Async name="AsyncAppender" includeLocation="true">
> <AppenderRef ref="RollingFile"/>
> </Async>
> </appenders>
> <loggers>
> <AsyncLogger name="sso" level="info" includeLocation="true">
> <AppenderRef ref="AsyncAppender"/>
> </AsyncLogger>
> <AsyncLogger name="webservice" level="info" includeLocation="true">
> <AppenderRef ref="AsyncAppender"/>
> </AsyncLogger>
> </loggers>
> </configuration>
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org