getting error trying to create log4j2 rollingfileappender
I'm trying to switch from using FileAppender to the RollingFileAppender using log4j2 (happens both with beta3 and beta4 jars). I have it configured as: <RollingFile name="RollingFile" fileName="${logdir}/${filename}" filePattern="${logdir}/app-%d{yyyy-MM-dd-hh-mm-ss}_%i.log" > <PatternLayout> <pattern>%d %p %C{1.} [%t] %m%n</pattern> </PatternLayout> <Policies> <OnStartupTriggeringPolicy/> </Policies> <DefaultRolloverStrategy max="20"/> </RollingFile> ... <loggers> <root level="ERROR"> <appender-ref ref="RollingFile"/> <appender-ref ref="STDOUT"/> </root> ... and in the code, I'm trying to get