public final class CLogger
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DISABLE_QUEUE_LOG |
static java.lang.String |
ENV_DISABLE_QUEUE_LOG |
static java.lang.String |
LEVEL_DEBUG
debug level
|
static java.lang.String |
LEVEL_ERROR
error level
|
static java.lang.String |
LEVEL_FATAL
fatal level
|
static java.lang.String |
LEVEL_INFO
info level
|
static java.lang.String |
LEVEL_WARN
warning level
|
Modifier and Type | Method and Description |
---|---|
static void |
debug(org.apache.commons.logging.Log logger,
java.lang.String message)
log a debug message via a background thread
|
static void |
debug(org.apache.commons.logging.Log logger,
java.lang.String message,
java.lang.Throwable cause)
log a debug message via a background thread
|
static void |
error(org.apache.commons.logging.Log logger,
java.lang.String message)
log a error message via a background thread
|
static void |
error(org.apache.commons.logging.Log logger,
java.lang.String message,
java.lang.Throwable cause)
log a error message via a background thread
|
static void |
fatal(org.apache.commons.logging.Log logger,
java.lang.String message)
log a fatal message via a background thread
|
static void |
fatal(org.apache.commons.logging.Log logger,
java.lang.String message,
java.lang.Throwable cause)
log a fatal message via a background thread
|
static void |
flush() |
static org.apache.commons.logging.Log |
getLog(java.lang.String name)
gets a logger
|
static void |
info(org.apache.commons.logging.Log logger,
java.lang.String message)
log a info message via a background thread
|
static void |
info(org.apache.commons.logging.Log logger,
java.lang.String message,
java.lang.Throwable cause)
log a info message via a background thread
|
static void |
requestDump(java.lang.Appendable buffer) |
static java.lang.Exception |
rethrowException(java.lang.Throwable e)
throws as a run time exception
|
static java.lang.RuntimeException |
rethrowRuntimeExcepton(java.lang.Throwable e)
throws as a run time exception
|
static void |
schedule(org.apache.commons.logging.Log logger,
java.lang.String level,
java.lang.String message,
java.lang.Throwable cause)
schedule a log event in a separate thread so that we do not block
|
static java.lang.String |
stackDump()
dump the stack
|
static void |
warn(org.apache.commons.logging.Log logger,
java.lang.String message)
log a warning message via a background thread
|
static void |
warn(org.apache.commons.logging.Log logger,
java.lang.String message,
java.lang.Throwable cause)
log a warning message via a background thread
|
public static final java.lang.String LEVEL_DEBUG
public static final java.lang.String LEVEL_INFO
public static final java.lang.String LEVEL_WARN
public static final java.lang.String LEVEL_ERROR
public static final java.lang.String LEVEL_FATAL
public static final boolean DISABLE_QUEUE_LOG
public static final java.lang.String ENV_DISABLE_QUEUE_LOG
public static void fatal(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message, @Nullable java.lang.Throwable cause)
logger
- the logger to usemessage
- the messagecause
- the causepublic static void fatal(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message)
logger
- the logger to usemessage
- the messagepublic static void error(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message, @Nullable java.lang.Throwable cause)
logger
- the logger to usemessage
- the messagecause
- the causepublic static void error(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message)
logger
- the logger to usemessage
- the messagepublic static void warn(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message, @Nullable java.lang.Throwable cause)
logger
- the logger to usemessage
- the messagecause
- the causepublic static void warn(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message)
logger
- the logger to usemessage
- the messagepublic static void info(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message, @Nullable java.lang.Throwable cause)
logger
- the logger to usemessage
- the messagecause
- the causepublic static void info(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message)
logger
- the logger to usemessage
- the messagepublic static void debug(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message, @Nullable java.lang.Throwable cause)
logger
- the logger to usemessage
- the messagecause
- the causepublic static void debug(@Nonnull org.apache.commons.logging.Log logger, @Nonnull java.lang.String message)
logger
- the logger to usemessage
- the messagepublic static void schedule(@Nonnull org.apache.commons.logging.Log logger, @Nullable java.lang.String level, @Nonnull java.lang.String message, @Nullable java.lang.Throwable cause)
logger
- the loggerlevel
- the level (debug, info, warn, error or fatal)message
- the message to logcause
- the causepublic static void requestDump(@Nonnull java.lang.Appendable buffer)
buffer
- @CheckReturnValue @Nonnull public static java.lang.String stackDump()
@Nonnull public static java.lang.RuntimeException rethrowRuntimeExcepton(@Nonnull java.lang.Throwable e)
e
- the exception@Nonnull public static java.lang.Exception rethrowException(@Nonnull java.lang.Throwable e) throws java.lang.Exception
e
- the exceptionjava.lang.Exception
- the exception@CheckReturnValue @Nonnull public static org.apache.commons.logging.Log getLog(@Nonnull java.lang.String name)
name
- path name.public static void flush()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.