From b31e91cba52d3b6e76b80072b232b7479be2122f Mon Sep 17 00:00:00 2001
From: Gary Gregory
* This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *
*/ @Override public final boolean isDebugEnabled() { @@ -406,11 +408,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are error messages currently enabled? + * Tests whether error messages are enabled. ** This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *
*/ @Override public final boolean isErrorEnabled() { @@ -418,11 +421,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are fatal messages currently enabled? + * Tests whether fatal messages are enabled. ** This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *
*/ @Override public final boolean isFatalEnabled() { @@ -430,11 +434,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are info messages currently enabled? + * Tests whether info messages are enabled. ** This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *
*/ @Override public final boolean isInfoEnabled() { @@ -442,7 +447,7 @@ public class SimpleLog implements Log, Serializable { } /** - * Tests whether the given log level currently enabled. + * Tests whether the given level is enabled. * * @param logLevel is this level enabled? * @return whether the given log level currently enabled. @@ -454,11 +459,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are trace messages currently enabled? + * Tests whether trace messages are enabled. ** This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *
*/ @Override public final boolean isTraceEnabled() { @@ -466,11 +472,12 @@ public class SimpleLog implements Log, Serializable { } /** - * Are warn messages currently enabled? + * Tests whether warn messages are enabled. ** This allows expensive operations such as {@code String} * concatenation to be avoided when the message will be ignored by the * logger. + *
*/ @Override public final boolean isWarnEnabled() { @@ -482,6 +489,7 @@ public class SimpleLog implements Log, Serializable { ** This method assembles the message and then calls {@code write()} * to cause it to be written. + *
* * @param type One of the LOG_LEVEL_XXX constants defining the log level * @param message The message itself (typically a String) @@ -624,7 +632,7 @@ public class SimpleLog implements Log, Serializable { } /** - * Write the content of the message accumulated in the specified + * Writes the content of the message accumulated in the specified * {@code StringBuffer} to the appropriate output destination. The * default implementation writes to {@code System.err}. * @@ -636,7 +644,7 @@ public class SimpleLog implements Log, Serializable { } /** - * Write the content of the message accumulated in the specified + * Writes the content of the message accumulated in the specified * {@code StringBuffer} to the appropriate output destination. The * default implementation writes to {@code System.err}. *