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/19 17:39:23 UTC

[logging-log4j2] 02/10: Fix parameter name.

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 44f509c42278ed1604bb30fe132d668df0477d33
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Jan 19 07:48:28 2022 -0500

    Fix parameter name.
---
 log4j-api/src/main/java/org/apache/logging/log4j/Level.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/Level.java b/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
index c24e43e..7cb8247 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/Level.java
@@ -283,11 +283,11 @@ public final class Level implements Comparable<Level>, Serializable {
      * Converts the string passed as argument to a level. If the conversion fails, then this method returns
      * {@link #DEBUG}.
      *
-     * @param sArg The name of the desired Level.
+     * @param level The name of the desired Level.
      * @return The Level associated with the String.
      */
-    public static Level toLevel(final String sArg) {
-        return toLevel(sArg, Level.DEBUG);
+    public static Level toLevel(final String level) {
+        return toLevel(level, Level.DEBUG);
     }
 
     /**