public class GwtLogger
extends org.slf4j.helpers.MarkerIgnoringBase
Logger
for GWT clients. It adapts to Log
.Modifier and Type | Field and Description |
---|---|
protected String |
name |
private static long |
serialVersionUID |
Constructor and Description |
---|
GwtLogger(String name)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message) |
void |
debug(String format,
Object... argArray) |
void |
debug(String format,
Object arg) |
void |
debug(String format,
Object arg1,
Object arg2) |
void |
debug(String message,
Throwable t) |
void |
error(String message) |
void |
error(String format,
Object... argArray) |
void |
error(String format,
Object arg) |
void |
error(String format,
Object arg1,
Object arg2) |
void |
error(String message,
Throwable t) |
protected String |
format(String format,
Object... args)
This is a GWT compatible implementation of
MessageFormatter . |
void |
info(String message) |
void |
info(String format,
Object... argArray) |
void |
info(String format,
Object arg) |
void |
info(String format,
Object arg1,
Object arg2) |
void |
info(String message,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isErrorEnabled() |
boolean |
isInfoEnabled() |
boolean |
isTraceEnabled() |
boolean |
isWarnEnabled() |
protected Object |
readResolve() |
void |
trace(String message) |
void |
trace(String format,
Object... argArray) |
void |
trace(String format,
Object arg) |
void |
trace(String format,
Object arg1,
Object arg2) |
void |
trace(String message,
Throwable t) |
void |
warn(String message) |
void |
warn(String format,
Object... argArray) |
void |
warn(String format,
Object arg) |
void |
warn(String format,
Object arg1,
Object arg2) |
void |
warn(String message,
Throwable t) |
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
private static final long serialVersionUID
protected String name
public GwtLogger(String name)
name
- - is the name
of the logger.public boolean isTraceEnabled()
public void trace(String message)
protected String format(String format, Object... args)
MessageFormatter
.format
- is the format string (containing "{}"-place-holders).args
- are the arguments to fill in.public boolean isDebugEnabled()
public void debug(String message)
public boolean isInfoEnabled()
public void info(String message)
public boolean isWarnEnabled()
public void warn(String message)
public boolean isErrorEnabled()
public void error(String message)
protected Object readResolve() throws ObjectStreamException
ObjectStreamException
Copyright © 2001–2016 mmm-Team. All rights reserved.