public class SimpleExoLog extends Object implements Log
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 and Description |
|---|
SimpleExoLog(String name) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SimpleExoLog(String name)
public void setLevel(int i)
public int getLevel()
public void debug(Object o)
LogLog a message with debug log level.
public void debug(Object o, Throwable throwable)
LogLog an error with debug log level.
public void trace(Object o)
LogLog a message with trace log level.
public void trace(Object o, Throwable throwable)
LogLog an error with trace log level.
public void info(Object o)
LogLog a message with info log level.
public void info(Object o, Throwable throwable)
LogLog an error with info log level.
public void warn(Object o)
LogLog a message with warn log level.
public void warn(Object o, Throwable throwable)
LogLog an error with warn log level.
public void error(Object o)
LogLog a message with error log level.
public void error(Object o, Throwable throwable)
LogLog an error with error log level.
public void fatal(Object o)
LogLog a message with fatal log level.
public void fatal(Object o, Throwable throwable)
LogLog an error with fatal log level.
public 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 Logpublic 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 usedpublic 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 usedpublic 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 usedpublic 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 usedpublic 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 usedpublic 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 usedCopyright © 2021 eXo Platform SAS. All Rights Reserved.