[LOG4J2-1547] The Core AbstractConfiguration should track its LoggerContext and add Configuration.getLoggerContext(). Fix code example and adapt to new signature.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/2cfc94b9 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/2cfc94b9 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/2cfc94b9 Branch: refs/heads/LOG4J2-1349-gcfree-threadcontext Commit: 2cfc94b9e161b607c3c8d88bccc82f90651f61c8 Parents: 498eef5 Author: Gary Gregory <ggreg...@apache.org> Authored: Fri Aug 26 08:57:23 2016 -0700 Committer: Gary Gregory <ggreg...@apache.org> Committed: Fri Aug 26 08:57:23 2016 -0700 ---------------------------------------------------------------------- src/site/xdoc/manual/extending.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/2cfc94b9/src/site/xdoc/manual/extending.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/manual/extending.xml b/src/site/xdoc/manual/extending.xml index d625edd..2bcdef2 100644 --- a/src/site/xdoc/manual/extending.xml +++ b/src/site/xdoc/manual/extending.xml @@ -123,12 +123,14 @@ public class XMLConfigurationFactory extends ConfigurationFactory { public static final String[] SUFFIXES = new String[] {".xml", "*"}; /** - * Return the Configuration. + * Returns the Configuration. + * @param loggerContext The logger context. * @param source The InputSource. * @return The Configuration. */ - public Configuration getConfiguration(InputSource source) { - return new XMLConfiguration(source, configFile); + @Override + public Configuration getConfiguration(final LoggerContext loggerContext, final ConfigurationSource source) { + return new XmlConfiguration(loggerContext, source); } /**