public abstract class Log extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Log.LEVEL |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
localTrace |
| Modifier and Type | Method and Description |
|---|---|
void |
d(Object... msg)
Log a message in debug, it will automatically append the objects if debug is enabled.
|
abstract void |
debug(Object message)
Log a message with debug log level.
|
abstract void |
debug(Object message,
Throwable t)
Log an error with debug log level.
|
void |
e(Object... msg)
Log a message in error, it will automatically append the objects if debug is enabled.
|
abstract void |
error(Object message)
Log a message with error log level.
|
abstract void |
error(Object message,
Throwable t)
Log an error with error log level.
|
void |
f(Object... msg)
Log a message in info, it will automatically append the objects if debug is enabled.
|
abstract void |
fatal(Object message)
Log a message with fatal log level.
|
abstract void |
fatal(Object message,
Throwable t)
Log an error with fatal log level.
|
static Log |
getLog(Object owner) |
String |
getName()
Use the name of the caller
|
void |
i(Object... msg)
Log a message in info, it will automatically append the objects if debug is enabled.
|
abstract void |
info(Object message)
Log a message with info log level.
|
abstract void |
info(Object message,
Throwable t)
Log an error with info log level.
|
abstract boolean |
isDebugEnabled()
Is debug logging currently enabled?
|
abstract boolean |
isErrorEnabled()
Is error logging currently enabled?
|
abstract boolean |
isFatalEnabled()
Is fatal logging currently enabled?
|
abstract boolean |
isInfoEnabled()
Is info logging currently enabled?
|
boolean |
isTrace() |
abstract boolean |
isTraceEnabled()
Is trace logging currently enabled?
|
abstract boolean |
isWarnEnabled()
Is warn logging currently enabled?
|
protected void |
prepare(StringBuffer sb) |
void |
setTrace(boolean localTrace) |
void |
t(Object... msg)
Log a message in trace, it will automatically append the objects if trace is enabled.
|
String |
toString() |
abstract void |
trace(Object message)
Log a message with trace log level.
|
abstract void |
trace(Object message,
Throwable t)
Log an error with trace log level.
|
void |
tt(Object... msg)
Log a message in trace, it will automatically append the objects if trace is enabled.
|
void |
w(Object... msg)
Log a message in warn, it will automatically append the objects if debug is enabled.
|
abstract void |
warn(Object message)
Log a message with warn log level.
|
abstract void |
warn(Object message,
Throwable t)
Log an error with warn log level.
|
void |
x(boolean info,
Object... msg)
Log a message in info or debug, it will automatically append the objects if debug is enabled.
|
public Log(String name)
public abstract boolean isDebugEnabled()
Is debug logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than debug.
public abstract boolean isErrorEnabled()
Is error logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than error.
public abstract boolean isFatalEnabled()
Is fatal logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than fatal.
public abstract boolean isInfoEnabled()
Is info logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than info.
public abstract boolean isTraceEnabled()
Is trace logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than trace.
public abstract boolean isWarnEnabled()
Is warn logging currently enabled?
Call this method to prevent having to perform expensive operations
(for example, String concatenation)
when the log level is more than warn.
public void t(Object... msg)
public void tt(Object... msg)
public void d(Object... msg)
public void i(Object... msg)
public void x(boolean info,
Object... msg)
public void w(Object... msg)
public void e(Object... msg)
public void f(Object... msg)
protected void prepare(StringBuffer sb)
public abstract void trace(Object message)
Log a message with trace log level.
message - log this messagepublic abstract void trace(Object message, Throwable t)
Log an error with trace log level.
message - log this messaget - log this causepublic abstract void debug(Object message)
Log a message with debug log level.
message - log this messagepublic abstract void debug(Object message, Throwable t)
Log an error with debug log level.
message - log this messaget - log this causepublic abstract void info(Object message)
Log a message with info log level.
message - log this messagepublic abstract void info(Object message, Throwable t)
Log an error with info log level.
message - log this messaget - log this causepublic abstract void warn(Object message)
Log a message with warn log level.
message - log this messagepublic abstract void warn(Object message, Throwable t)
Log an error with warn log level.
message - log this messaget - log this causepublic abstract void error(Object message)
Log a message with error log level.
message - log this messagepublic abstract void error(Object message, Throwable t)
Log an error with error log level.
message - log this messaget - log this causepublic abstract void fatal(Object message)
Log a message with fatal log level.
message - log this messagepublic abstract void fatal(Object message, Throwable t)
Log an error with fatal log level.
message - log this messaget - log this causepublic void setTrace(boolean localTrace)
public boolean isTrace()
public String getName()
Copyright © 2014. All rights reserved.