public class ConsolidatedLogger extends Object implements org.slf4j.Logger
Logs given message to given logger. Uses LoadingCache
to ignore messages.
Messages are logged 'logs_number_before_suppress' times before they are ignored.
When the 'expire_after_write_to_cache' has passed or the cache size reach to
'max_cache_size' - the messages will be logged again.
The following parameters can be configured:
Modifier and Type | Method and Description |
---|---|
void |
debug(org.slf4j.Marker marker,
String s) |
void |
debug(org.slf4j.Marker marker,
String s,
Object... objects) |
void |
debug(org.slf4j.Marker marker,
String s,
Object o) |
void |
debug(org.slf4j.Marker marker,
String s,
Object o,
Object o1) |
void |
debug(org.slf4j.Marker marker,
String s,
Throwable throwable) |
void |
debug(String s) |
void |
debug(String s,
Object... objects) |
void |
debug(String s,
Object o) |
void |
debug(String s,
Object o,
Object o1) |
void |
debug(String s,
Throwable throwable) |
void |
error(org.slf4j.Marker marker,
String s) |
void |
error(org.slf4j.Marker marker,
String s,
Object... objects) |
void |
error(org.slf4j.Marker marker,
String s,
Object o) |
void |
error(org.slf4j.Marker marker,
String s,
Object o,
Object o1) |
void |
error(org.slf4j.Marker marker,
String s,
Throwable throwable) |
void |
error(String s) |
void |
error(String s,
Object... objects) |
void |
error(String s,
Object o) |
void |
error(String s,
Object o,
Object o1) |
void |
error(String s,
Throwable throwable) |
static ConsolidatedLogger |
getLogger(org.slf4j.Logger logger) |
static ConsolidatedLogger |
getLogger(String name) |
String |
getName() |
org.slf4j.Logger |
getSlfLogger() |
void |
info(org.slf4j.Marker marker,
String s) |
void |
info(org.slf4j.Marker marker,
String s,
Object... objects) |
void |
info(org.slf4j.Marker marker,
String s,
Object o) |
void |
info(org.slf4j.Marker marker,
String s,
Object o,
Object o1) |
void |
info(org.slf4j.Marker marker,
String s,
Throwable throwable) |
void |
info(String s) |
void |
info(String s,
Object... objects) |
void |
info(String s,
Object o) |
void |
info(String s,
Object o,
Object o1) |
void |
info(String s,
Throwable throwable) |
boolean |
isDebugEnabled() |
boolean |
isDebugEnabled(org.slf4j.Marker marker) |
boolean |
isErrorEnabled() |
boolean |
isErrorEnabled(org.slf4j.Marker marker) |
boolean |
isInfoEnabled() |
boolean |
isInfoEnabled(org.slf4j.Marker marker) |
boolean |
isTraceEnabled() |
boolean |
isTraceEnabled(org.slf4j.Marker marker) |
boolean |
isWarnEnabled() |
boolean |
isWarnEnabled(org.slf4j.Marker marker) |
void |
trace(org.slf4j.Marker marker,
String s) |
void |
trace(org.slf4j.Marker marker,
String s,
Object... objects) |
void |
trace(org.slf4j.Marker marker,
String s,
Object o) |
void |
trace(org.slf4j.Marker marker,
String s,
Object o,
Object o1) |
void |
trace(org.slf4j.Marker marker,
String s,
Throwable throwable) |
void |
trace(String s) |
void |
trace(String s,
Object... objects) |
void |
trace(String s,
Object o) |
void |
trace(String s,
Object o,
Object o1) |
void |
trace(String s,
Throwable throwable) |
void |
warn(org.slf4j.Marker marker,
String s) |
void |
warn(org.slf4j.Marker marker,
String s,
Object... objects) |
void |
warn(org.slf4j.Marker marker,
String s,
Object o) |
void |
warn(org.slf4j.Marker marker,
String s,
Object o,
Object o1) |
void |
warn(org.slf4j.Marker marker,
String s,
Throwable throwable) |
void |
warn(String s) |
void |
warn(String s,
Object... objects) |
void |
warn(String s,
Object o) |
void |
warn(String s,
Object o,
Object o1) |
void |
warn(String s,
Throwable throwable) |
public static ConsolidatedLogger getLogger(String name)
public static ConsolidatedLogger getLogger(org.slf4j.Logger logger)
public org.slf4j.Logger getSlfLogger()
public String getName()
getName
in interface org.slf4j.Logger
public boolean isTraceEnabled()
isTraceEnabled
in interface org.slf4j.Logger
public void trace(String s)
trace
in interface org.slf4j.Logger
public void trace(String s, Object o, Object o1)
trace
in interface org.slf4j.Logger
public void trace(String s, Object... objects)
trace
in interface org.slf4j.Logger
public void trace(String s, Throwable throwable)
trace
in interface org.slf4j.Logger
public boolean isTraceEnabled(org.slf4j.Marker marker)
isTraceEnabled
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String s)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String s, Object o)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String s, Object o, Object o1)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String s, Object... objects)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String s, Throwable throwable)
trace
in interface org.slf4j.Logger
public boolean isDebugEnabled()
isDebugEnabled
in interface org.slf4j.Logger
public void debug(String s)
debug
in interface org.slf4j.Logger
public void debug(String s, Object o, Object o1)
debug
in interface org.slf4j.Logger
public void debug(String s, Object... objects)
debug
in interface org.slf4j.Logger
public void debug(String s, Throwable throwable)
debug
in interface org.slf4j.Logger
public boolean isDebugEnabled(org.slf4j.Marker marker)
isDebugEnabled
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String s)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String s, Object o)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String s, Object o, Object o1)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String s, Object... objects)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String s, Throwable throwable)
debug
in interface org.slf4j.Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface org.slf4j.Logger
public void info(String s)
info
in interface org.slf4j.Logger
public void info(String s, Object o, Object o1)
info
in interface org.slf4j.Logger
public void info(String s, Throwable throwable)
info
in interface org.slf4j.Logger
public boolean isInfoEnabled(org.slf4j.Marker marker)
isInfoEnabled
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String s)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String s, Object o)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String s, Object o, Object o1)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String s, Object... objects)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String s, Throwable throwable)
info
in interface org.slf4j.Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface org.slf4j.Logger
public void warn(String s)
warn
in interface org.slf4j.Logger
public void warn(String s, Object o, Object o1)
warn
in interface org.slf4j.Logger
public void warn(String s, Throwable throwable)
warn
in interface org.slf4j.Logger
public boolean isWarnEnabled(org.slf4j.Marker marker)
isWarnEnabled
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String s)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String s, Object o)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String s, Object o, Object o1)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String s, Object... objects)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String s, Throwable throwable)
warn
in interface org.slf4j.Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface org.slf4j.Logger
public void error(String s)
error
in interface org.slf4j.Logger
public void error(String s, Object o, Object o1)
error
in interface org.slf4j.Logger
public void error(String s, Object... objects)
error
in interface org.slf4j.Logger
public void error(String s, Throwable throwable)
error
in interface org.slf4j.Logger
public boolean isErrorEnabled(org.slf4j.Marker marker)
isErrorEnabled
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String s)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String s, Object o)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String s, Object o, Object o1)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String s, Object... objects)
error
in interface org.slf4j.Logger
Copyright © GigaSpaces.