title: log4j2 properties configuration to put messages of different severities in different log files
body: <p>I tried with all the possibilities. My <strong>log4j2.properties</strong> configuration not resulting properly.</p>
  
  <p>I'm trying to create different files for <code>info, error</code> and <code>debug</code>. At last the files are created. But, no log is logged in to it. I spent whole day for this. Please help.</p>
  
  <pre><code>name=PropertiesConfig
  property.filename = c:\\logs
  appenders = console, file, debug
  
  appender.console.type = Console
  appender.console.name = consoleLogger
  appender.console.layout.type = PatternLayout
  appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
  
  appender.file.type = RollingFile
  appender.file.name = RollingFile
  appender.file.level = info
  appender.file.fileName = ${filename}/info.log
  appender.file.filePattern = ${filename}.%d{yyyy-MM-dd}
  appender.file.layout.type = PatternLayout
  appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n
  appender.file.policies.type = Policies
  appender.file.policies.time.type = TimeBasedTriggeringPolicy
  appender.file.policies.time.interval = 1
  
  appender.debug.type = RollingFile
  appender.debug.name = RollingFile
  appender.debug.level = debug
  appender.debug.fileName = ${filename}/debug.log
  appender.debug.filePattern = ${filename}.%d{yyyy-MM-dd}
  appender.debug.layout.type = PatternLayout
  appender.debug.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n
  appender.debug.policies.type = Policies
  appender.debug.policies.time.type = TimeBasedTriggeringPolicy
  appender.debug.policies.time.interval = 1
  
  loggers = file,debug
  
  logger.file.name = infoLogger
  logger.file.level = info
  logger.file.appenderRefs = RollingFile
  logger.file.additivity = true
  logger.file.appenderRef.rolling.ref = RollingFile
  
  logger.debug.name = debugLogger
  logger.debug.level = debug
  logger.debug.appenderRefs = RollingFile
  logger.debug.additivity = false
  logger.debug.appenderRef.rolling.ref = RollingFile
  
  rootLogger.level = INFO
  rootLogger.appenderRefs = console, file, debug
  rootLogger.appenderRef.stdout.ref = INFO
  </code></pre>