You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2016/08/26 17:05:37 UTC
[09/10] logging-log4j2 git commit: [LOG4J2-1547] The Core
AbstractConfiguration should track its LoggerContext and add
Configuration.getLoggerContext(). Fix code example and adapt to new
signature.
[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-1539
Commit: 2cfc94b9e161b607c3c8d88bccc82f90651f61c8
Parents: 498eef5
Author: Gary Gregory <gg...@apache.org>
Authored: Fri Aug 26 08:57:23 2016 -0700
Committer: Gary Gregory <gg...@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);
}
/**