1
0
This commit is contained in:
Gary Gregory
2024-06-30 08:01:44 -04:00
parent c8bba3dcb8
commit b31e91cba5

View File

@@ -66,6 +66,7 @@ import org.apache.commons.logging.LogConfigurationException;
* above, this implementation also checks for a class loader resource named * above, this implementation also checks for a class loader resource named
* {@code "simplelog.properties"}, and includes any matching definitions * {@code "simplelog.properties"}, and includes any matching definitions
* from this resource (if it exists). * from this resource (if it exists).
* </p>
*/ */
public class SimpleLog implements Log, Serializable { public class SimpleLog implements Log, Serializable {
@@ -394,11 +395,12 @@ public class SimpleLog implements Log, Serializable {
} }
/** /**
* Are debug messages currently enabled? * Tests whether debug messages are enabled.
* <p> * <p>
* This allows expensive operations such as {@code String} * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the * concatenation to be avoided when the message will be ignored by the
* logger. * logger.
* </p>
*/ */
@Override @Override
public final boolean isDebugEnabled() { 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.
* <p> * <p>
* This allows expensive operations such as {@code String} * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the * concatenation to be avoided when the message will be ignored by the
* logger. * logger.
* </p>
*/ */
@Override @Override
public final boolean isErrorEnabled() { 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.
* <p> * <p>
* This allows expensive operations such as {@code String} * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the * concatenation to be avoided when the message will be ignored by the
* logger. * logger.
* </p>
*/ */
@Override @Override
public final boolean isFatalEnabled() { 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.
* <p> * <p>
* This allows expensive operations such as {@code String} * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the * concatenation to be avoided when the message will be ignored by the
* logger. * logger.
* </p>
*/ */
@Override @Override
public final boolean isInfoEnabled() { 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? * @param logLevel is this level enabled?
* @return whether the given log level currently 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.
* <p> * <p>
* This allows expensive operations such as {@code String} * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the * concatenation to be avoided when the message will be ignored by the
* logger. * logger.
* </p>
*/ */
@Override @Override
public final boolean isTraceEnabled() { 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.
* <p> * <p>
* This allows expensive operations such as {@code String} * This allows expensive operations such as {@code String}
* concatenation to be avoided when the message will be ignored by the * concatenation to be avoided when the message will be ignored by the
* logger. * logger.
* </p>
*/ */
@Override @Override
public final boolean isWarnEnabled() { public final boolean isWarnEnabled() {
@@ -482,6 +489,7 @@ public class SimpleLog implements Log, Serializable {
* <p> * <p>
* This method assembles the message and then calls {@code write()} * This method assembles the message and then calls {@code write()}
* to cause it to be written. * to cause it to be written.
* </p>
* *
* @param type One of the LOG_LEVEL_XXX constants defining the log level * @param type One of the LOG_LEVEL_XXX constants defining the log level
* @param message The message itself (typically a String) * @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 * {@code StringBuffer} to the appropriate output destination. The
* default implementation writes to {@code System.err}. * 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 * {@code StringBuffer} to the appropriate output destination. The
* default implementation writes to {@code System.err}. * default implementation writes to {@code System.err}.
* *