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 2022/01/11 19:02:09 UTC
[logging-log4j2] 02/05: Javadocs; one format nit.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 45dfa5f43d938b9f9fdc59aa94f35f303e2ed693
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jan 11 13:21:52 2022 -0500
Javadocs; one format nit.
---
.../org/apache/log4j/config/PropertiesConfiguration.java | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java b/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
index 1e4de2d..e26c428 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
@@ -62,9 +62,9 @@ import java.util.StringTokenizer;
import java.util.TreeMap;
/**
- * Construct a configuration based on Log4j 1 properties.
+ * Constructs a configuration based on Log4j 1 properties.
*/
-public class PropertiesConfiguration extends Log4j1Configuration {
+public class PropertiesConfiguration extends Log4j1Configuration {
private static final String CATEGORY_PREFIX = "log4j.category.";
private static final String LOGGER_PREFIX = "log4j.logger.";
@@ -83,7 +83,8 @@ public class PropertiesConfiguration extends Log4j1Configuration {
private final Map<String, Appender> registry = new HashMap<>();
/**
- * Constructor.
+ * Constructs a new instance.
+ *
* @param loggerContext The LoggerContext.
* @param source The ConfigurationSource.
* @param monitorIntervalSeconds The monitoring interval in seconds.
@@ -125,7 +126,7 @@ public class PropertiesConfiguration extends Log4j1Configuration {
}
/**
- * Read configuration from a file. <b>The existing configuration is
+ * Reads a configuration from a file. <b>The existing configuration is
* not cleared nor reset.</b> If you require a different behavior,
* then call {@link LogManager#resetConfiguration
* resetConfiguration} method before calling
@@ -342,7 +343,7 @@ public class PropertiesConfiguration extends Log4j1Configuration {
}
/**
- * Parse non-root elements, such non-root categories and renderers.
+ * Parses non-root elements, such non-root categories and renderers.
*/
private void parseLoggers(Properties props) {
Enumeration<?> enumeration = props.propertyNames();
@@ -368,7 +369,7 @@ public class PropertiesConfiguration extends Log4j1Configuration {
}
/**
- * Parse the additivity option for a non-root category.
+ * Parses the additivity option for a non-root category.
*/
private boolean getAdditivityForLogger(Properties props, String loggerName) {
boolean additivity = true;