Details
-
Documentation
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.12.0
-
None
-
None
Description
In the documentation the example for...
https://logging.apache.org/log4j/2.x/manual/customconfig.html#Initialize_Log4j_by_Combining_Configuration_File_with_Programmatic_Configuration
...has a discrepancy.
/** * Return the Configuration. * @param source The InputSource. * @return The Configuration. */ public Configuration getConfiguration(InputSource source) { return new MyXMLConfiguration(source, configFile); }
and
public MyXMLConfiguration(final ConfigurationFactory.ConfigurationSource configSource) { super(configSource); }
I think what is intended is...
@Override public Configuration getConfiguration(final LoggerContext loggerContext, final ConfigurationSource source) { return new FaceLoggerConfig(loggerContext, source); }
and
public FaceLoggerConfig(final LoggerContext loggerContext, final ConfigurationSource configSource) { super(loggerContext, configSource); }