java.lang.Object | |
↳ | com.atlassian.jira.util.log.RateLimitingLogger |
A logger for use where there is the chance for large numbers of repetitive errors.
This Logger will output only a limited number of stacktraces and then will only output error messages for
warn(Object, Throwable)
and error(Object, Throwable)
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new logger with defaults for number of stacktraces (25) and time to reset (5 minutes).
| |||||||||||
Create a new logger
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new logger with defaults for number of stacktraces (25) and time to reset (5 minutes).
clazz | Class for logger name |
---|
Create a new logger
clazz | Class for logger name |
---|---|
maxStackTraces | 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. |