Add note about custom log file name
authorMatt Sicker <boards@gmail.com>
Sun, 15 Jan 2017 21:41:08 +0000 (15:41 -0600)
committerMatt Sicker <boards@gmail.com>
Sun, 15 Jan 2017 21:41:08 +0000 (15:41 -0600)
spring/src/main/java/org/apache/logging/log4j/boot/spring/Log4jLoggingSystem.java

index e0bad83..be7120b 100644 (file)
@@ -135,7 +135,8 @@ public class Log4jLoggingSystem extends AbstractLoggingSystem {
 
     @Override
     protected void loadConfiguration(final LoggingInitializationContext context, final String location,
-                                     final LogFile file) {
+                                     final LogFile ignored) {
+        // log file name is available via ${sys:LOG_FILE} (see log4j2-file.xml default config)
         final URI configLocation = NetUtils.toURI(location);
         loggerContext = (LoggerContext) LogManager.getContext(
             getClassLoader(), false, this, configLocation);