logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1521656 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java
Date Tue, 10 Sep 2013 21:34:36 GMT
Author: ggregory
Date: Tue Sep 10 21:34:35 2013
New Revision: 1521656

URL: http://svn.apache.org/r1521656
Log:
Better param names.

Modified:
    logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java?rev=1521656&r1=1521655&r2=1521656&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/SMTPAppender.java
Tue Sep 10 21:34:35 2013
@@ -82,7 +82,7 @@ public final class SMTPAppender extends 
      * @param smtpProtocol The SMTP transport protocol (such as "smtps", defaults to "smtp").
      * @param smtpHost
      *            The SMTP hostname to send to.
-     * @param smtpPortNum
+     * @param smtpPortStr
      *            The SMTP port to send to.
      * @param smtpUsername
      *            The username required to authenticate against the SMTP server.
@@ -90,7 +90,7 @@ public final class SMTPAppender extends 
      *            The password required to authenticate against the SMTP server.
      * @param smtpDebug
      *            Enable mail session debuging on STDOUT.
-     * @param bufferSizeNum
+     * @param bufferSizeStr
      *            How many log events should be buffered for inclusion in the
      *            message?
      * @param layout
@@ -113,11 +113,11 @@ public final class SMTPAppender extends 
             @PluginAttribute("subject") final String subject,
             @PluginAttribute("smtpProtocol") final String smtpProtocol,
             @PluginAttribute("smtpHost") final String smtpHost,
-            @PluginAttribute("smtpPort") final String smtpPortNum,
+            @PluginAttribute("smtpPort") final String smtpPortStr,
             @PluginAttribute("smtpUsername") final String smtpUsername,
             @PluginAttribute("smtpPassword") final String smtpPassword,
             @PluginAttribute("smtpDebug") final String smtpDebug,
-            @PluginAttribute("bufferSize") final String bufferSizeNum,
+            @PluginAttribute("bufferSize") final String bufferSizeStr,
             @PluginElement("Layout") Layout<? extends Serializable> layout,
             @PluginElement("Filter") Filter filter,
             @PluginAttribute("ignoreExceptions") final String ignore) {
@@ -127,9 +127,9 @@ public final class SMTPAppender extends 
         }
 
         final boolean ignoreExceptions = Booleans.parseBoolean(ignore, true);
-        final int smtpPort = AbstractAppender.parseInt(smtpPortNum, 0);
+        final int smtpPort = AbstractAppender.parseInt(smtpPortStr, 0);
         final boolean isSmtpDebug = Boolean.parseBoolean(smtpDebug);
-        final int bufferSize = bufferSizeNum == null ? DEFAULT_BUFFER_SIZE : Integer.valueOf(bufferSizeNum);
+        final int bufferSize = bufferSizeStr == null ? DEFAULT_BUFFER_SIZE : Integer.valueOf(bufferSizeStr);
 
         if (layout == null) {
             layout = HTMLLayout.createLayout(null, null, null, null, null, null);



Mime
View raw message