public class SamplingLogger extends Object implements org.slf4j.Logger
Constructor and Description |
---|
SamplingLogger(org.slf4j.Logger delegate,
long cooldownMs) |
Modifier and Type | Method and Description |
---|---|
void |
debug(org.slf4j.Marker marker,
String msg) |
void |
debug(org.slf4j.Marker marker,
String format,
Object... arguments) |
void |
debug(org.slf4j.Marker marker,
String format,
Object arg) |
void |
debug(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2) |
void |
debug(org.slf4j.Marker marker,
String msg,
Throwable t) |
void |
debug(String msg) |
void |
debug(String format,
Object... arguments) |
void |
debug(String format,
Object arg) |
void |
debug(String format,
Object arg1,
Object arg2) |
void |
debug(String msg,
Throwable t) |
void |
error(org.slf4j.Marker marker,
String msg) |
void |
error(org.slf4j.Marker marker,
String format,
Object... arguments) |
void |
error(org.slf4j.Marker marker,
String format,
Object arg) |
void |
error(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2) |
void |
error(org.slf4j.Marker marker,
String msg,
Throwable t) |
void |
error(String msg) |
void |
error(String format,
Object... arguments) |
void |
error(String format,
Object arg) |
void |
error(String format,
Object arg1,
Object arg2) |
void |
error(String msg,
Throwable t) |
String |
getName() |
void |
info(org.slf4j.Marker marker,
String msg) |
void |
info(org.slf4j.Marker marker,
String format,
Object... arguments) |
void |
info(org.slf4j.Marker marker,
String format,
Object arg) |
void |
info(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2) |
void |
info(org.slf4j.Marker marker,
String msg,
Throwable t) |
void |
info(String msg) |
void |
info(String format,
Object... arguments) |
void |
info(String format,
Object arg) |
void |
info(String format,
Object arg1,
Object arg2) |
void |
info(String msg,
Throwable t) |
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 msg) |
void |
trace(org.slf4j.Marker marker,
String format,
Object... argArray) |
void |
trace(org.slf4j.Marker marker,
String format,
Object arg) |
void |
trace(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2) |
void |
trace(org.slf4j.Marker marker,
String msg,
Throwable t) |
void |
trace(String msg) |
void |
trace(String format,
Object... arguments) |
void |
trace(String format,
Object arg) |
void |
trace(String format,
Object arg1,
Object arg2) |
void |
trace(String msg,
Throwable t) |
void |
warn(org.slf4j.Marker marker,
String msg) |
void |
warn(org.slf4j.Marker marker,
String format,
Object... arguments) |
void |
warn(org.slf4j.Marker marker,
String format,
Object arg) |
void |
warn(org.slf4j.Marker marker,
String format,
Object arg1,
Object arg2) |
void |
warn(org.slf4j.Marker marker,
String msg,
Throwable t) |
void |
warn(String msg) |
void |
warn(String format,
Object... arguments) |
void |
warn(String format,
Object arg) |
void |
warn(String format,
Object arg1,
Object arg2) |
void |
warn(String msg,
Throwable t) |
public SamplingLogger(org.slf4j.Logger delegate, long cooldownMs)
delegate
- the logger to log tocooldownMs
- the cooldown period between log messagespublic void trace(String msg)
trace
in interface org.slf4j.Logger
public void trace(String format, Object arg)
trace
in interface org.slf4j.Logger
public void trace(String format, Object arg1, Object arg2)
trace
in interface org.slf4j.Logger
public void trace(String format, Object... arguments)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String msg)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String format, Object arg)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String format, Object... argArray)
trace
in interface org.slf4j.Logger
public void trace(org.slf4j.Marker marker, String msg, Throwable t)
trace
in interface org.slf4j.Logger
public void debug(String msg)
debug
in interface org.slf4j.Logger
public void debug(String format, Object arg)
debug
in interface org.slf4j.Logger
public void debug(String format, Object arg1, Object arg2)
debug
in interface org.slf4j.Logger
public void debug(String format, Object... arguments)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String msg)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String format, Object arg)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String format, Object... arguments)
debug
in interface org.slf4j.Logger
public void debug(org.slf4j.Marker marker, String msg, Throwable t)
debug
in interface org.slf4j.Logger
public void info(String msg)
info
in interface org.slf4j.Logger
public void info(String format, Object arg1, Object arg2)
info
in interface org.slf4j.Logger
public void info(String format, Object... arguments)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String msg)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String format, Object arg)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String format, Object... arguments)
info
in interface org.slf4j.Logger
public void info(org.slf4j.Marker marker, String msg, Throwable t)
info
in interface org.slf4j.Logger
public void warn(String msg)
warn
in interface org.slf4j.Logger
public void warn(String format, Object... arguments)
warn
in interface org.slf4j.Logger
public void warn(String format, Object arg1, Object arg2)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String msg)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String format, Object arg)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String format, Object... arguments)
warn
in interface org.slf4j.Logger
public void warn(org.slf4j.Marker marker, String msg, Throwable t)
warn
in interface org.slf4j.Logger
public void error(String msg)
error
in interface org.slf4j.Logger
public void error(String format, Object arg)
error
in interface org.slf4j.Logger
public void error(String format, Object arg1, Object arg2)
error
in interface org.slf4j.Logger
public void error(String format, Object... arguments)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String msg)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String format, Object arg)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String format, Object... arguments)
error
in interface org.slf4j.Logger
public void error(org.slf4j.Marker marker, String msg, Throwable t)
error
in interface org.slf4j.Logger
public String getName()
getName
in interface org.slf4j.Logger
public boolean isTraceEnabled()
isTraceEnabled
in interface org.slf4j.Logger
public boolean isTraceEnabled(org.slf4j.Marker marker)
isTraceEnabled
in interface org.slf4j.Logger
public boolean isDebugEnabled()
isDebugEnabled
in interface org.slf4j.Logger
public boolean isDebugEnabled(org.slf4j.Marker marker)
isDebugEnabled
in interface org.slf4j.Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface org.slf4j.Logger
public boolean isInfoEnabled(org.slf4j.Marker marker)
isInfoEnabled
in interface org.slf4j.Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface org.slf4j.Logger
public boolean isWarnEnabled(org.slf4j.Marker marker)
isWarnEnabled
in interface org.slf4j.Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface org.slf4j.Logger
public boolean isErrorEnabled(org.slf4j.Marker marker)
isErrorEnabled
in interface org.slf4j.Logger
Copyright © 2023. All Rights Reserved.