You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2022/03/13 20:00:23 UTC
[logging-log4j2] branch release-2.x updated: Fix code typo in customconfig.xml (#781)
This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new 7b9c413 Fix code typo in customconfig.xml (#781)
7b9c413 is described below
commit 7b9c413b254b7d32b4995c7527c7d792150b57f9
Author: stepansovik <so...@gmail.com>
AuthorDate: Sun Mar 13 21:00:16 2022 +0100
Fix code typo in customconfig.xml (#781)
---
src/site/xdoc/manual/customconfig.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/site/xdoc/manual/customconfig.xml b/src/site/xdoc/manual/customconfig.xml
index 0564e39..b90bba4 100644
--- a/src/site/xdoc/manual/customconfig.xml
+++ b/src/site/xdoc/manual/customconfig.xml
@@ -266,7 +266,7 @@ public class MyXMLConfiguration extends XMLConfiguration {
@Override
protected void doConfigure() {
super.doConfigure();
- final LoggerContext ctx = (LoggerContext) LogManager.getContext(false);
+ final LoggerContext context = (LoggerContext) LogManager.getContext(false);
final Configuration config = context.getConfiguration();
final Layout layout = PatternLayout.createDefaultLayout(config);
final Appender appender = FileAppender.createAppender("target/test.log", "false", "false", "File", "true",