public class RateLimitingLogger extends Object
warn(String s, Throwable t)
and error(String s, Throwable t)
Constructor and Description |
---|
RateLimitingLogger(Class clazz)
Create a new logger with defaults for number of stacktraces (25) and time to reset (5 minutes).
|
RateLimitingLogger(Class clazz,
int maxStackTraces,
int resetAfterMinutes)
Create a new logger
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message) |
void |
debug(String message,
Object object) |
void |
debug(String message,
Object arg1,
Object arg2) |
void |
debug(String message,
Throwable t) |
void |
error(String message) |
void |
error(String message,
Throwable t) |
void |
errorWithTrace(String message) |
void |
info(String message) |
void |
info(String message,
Throwable t) |
boolean |
isDebugEnabled() |
boolean |
isInfoEnabled() |
protected boolean |
wantFullStackTrace() |
void |
warn(String message) |
void |
warn(String message,
Throwable t) |
void |
warnWithTrace(String message) |
public RateLimitingLogger(Class clazz)
clazz
- Class for logger namepublic RateLimitingLogger(Class clazz, int maxStackTraces, int resetAfterMinutes)
clazz
- Class for logger namemaxStackTraces
- Maximum number of stacktraces to print before starting suppression.resetAfterMinutes
- Number of minutes where the logger is idle to cause a reset to recommence printing stacktraces.public void debug(String message)
public void error(String message)
public boolean isDebugEnabled()
public boolean isInfoEnabled()
public void info(String message)
public void warn(String message)
public void warnWithTrace(String message)
public void errorWithTrace(String message)
protected boolean wantFullStackTrace()
Copyright © 2002-2019 Atlassian. All Rights Reserved.