|
eXo Kernel :: Commons Utils 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.log.impl.SimpleExoLog
public class SimpleExoLog
Based on apache commons logging SimpleLog class. It could be
implemented later to use the system output directly in the future if the dependency over commons
logging is removed.
| Constructor Summary | |
|---|---|
SimpleExoLog(String name)
|
|
| Method Summary | |
|---|---|
void |
debug(Object o)
Log a message with debug log level. |
void |
debug(Object o,
Throwable throwable)
Log an error with debug log level. |
void |
debug(String format,
Object... argsArray)
Log an error with debug log level. |
void |
error(Object o)
Log a message with error log level. |
void |
error(Object o,
Throwable throwable)
Log an error with error log level. |
void |
error(String format,
Object... argsArray)
Log a message with error log level. |
void |
fatal(Object o)
Log a message with fatal log level. |
void |
fatal(Object o,
Throwable throwable)
Log an error with fatal log level. |
void |
fatal(String format,
Object... argsArray)
Log a message with fatal log level. |
int |
getLevel()
|
void |
info(Object o)
Log a message with info log level. |
void |
info(Object o,
Throwable throwable)
Log an error with info log level. |
void |
info(String format,
Object... argsArray)
Log an error with info log level. |
boolean |
isDebugEnabled()
Is debug logging currently enabled? |
boolean |
isErrorEnabled()
Is error logging currently enabled? |
boolean |
isFatalEnabled()
Is fatal logging currently enabled? |
boolean |
isInfoEnabled()
Is info logging currently enabled? |
boolean |
isTraceEnabled()
Is trace logging currently enabled? |
boolean |
isWarnEnabled()
Is warn logging currently enabled? |
void |
setLevel(int i)
|
void |
trace(Object o)
Log a message with trace log level. |
void |
trace(Object o,
Throwable throwable)
Log an error with trace log level. |
void |
trace(String format,
Object... argsArray)
Log an error with trace log level. |
void |
warn(Object o)
Log a message with warn log level. |
void |
warn(Object o,
Throwable throwable)
Log an error with warn log level. |
void |
warn(String format,
Object... argsArray)
Log a message with warn log level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleExoLog(String name)
| Method Detail |
|---|
public void setLevel(int i)
public int getLevel()
public void debug(Object o)
LogLog a message with debug log level.
debug in interface Logo - log this message
public void debug(Object o,
Throwable throwable)
LogLog an error with debug log level.
debug in interface Logo - log this messagethrowable - log this causepublic void trace(Object o)
LogLog a message with trace log level.
trace in interface Logo - log this message
public void trace(Object o,
Throwable throwable)
LogLog an error with trace log level.
trace in interface Logo - log this messagethrowable - log this causepublic void info(Object o)
LogLog a message with info log level.
info in interface Logo - log this message
public void info(Object o,
Throwable throwable)
LogLog an error with info log level.
info in interface Logo - log this messagethrowable - log this causepublic void warn(Object o)
LogLog a message with warn log level.
warn in interface Logo - log this message
public void warn(Object o,
Throwable throwable)
LogLog an error with warn log level.
warn in interface Logo - log this messagethrowable - log this causepublic void error(Object o)
LogLog a message with error log level.
error in interface Logo - log this message
public void error(Object o,
Throwable throwable)
LogLog an error with error log level.
error in interface Logo - log this messagethrowable - log this causepublic void fatal(Object o)
LogLog a message with fatal log level.
fatal in interface Logo - log this message
public void fatal(Object o,
Throwable throwable)
LogLog an error with fatal log level.
fatal in interface Logo - log this messagethrowable - log this causepublic boolean isDebugEnabled()
LogIs 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.
isDebugEnabled in interface Logpublic boolean isErrorEnabled()
LogIs 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.
isErrorEnabled in interface Logpublic boolean isFatalEnabled()
LogIs 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.
isFatalEnabled in interface Logpublic boolean isInfoEnabled()
LogIs 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.
isInfoEnabled in interface Logpublic boolean isTraceEnabled()
LogIs 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.
isTraceEnabled in interface Logpublic boolean isWarnEnabled()
LogIs 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.
isWarnEnabled in interface Log
public void trace(String format,
Object... argsArray)
LogLog an error with trace log level.
trace in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be used
public void debug(String format,
Object... argsArray)
LogLog an error with debug log level.
debug in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be used
public void info(String format,
Object... argsArray)
LogLog an error with info log level.
info in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be used
public void warn(String format,
Object... argsArray)
LogLog a message with warn log level.
warn in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be used
public void error(String format,
Object... argsArray)
LogLog a message with error log level.
error in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be used
public void fatal(String format,
Object... argsArray)
LogLog a message with fatal log level.
fatal in interface Logformat - String format to represent log message.
Sequence of '{}' is used to represent an anchor which will be replaced by
string representation of objects in argArrayargsArray - Throwable, String
or any other Object for which string representation will be used
|
eXo Kernel :: Commons Utils 2.5.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||