public class Rollbar
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
close(boolean wait) |
void |
configure(Config config)
Replace the configuration of this instance directly.
|
void |
configure(ConfigProvider configProvider)
Replace the configuration of this instance.
|
void |
critical(java.lang.String message)
Record a critical message.
|
void |
critical(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a critical message with extra information attached.
|
void |
critical(java.lang.Throwable error)
Record a critical error.
|
void |
critical(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a critical error with extra information attached.
|
void |
critical(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Record a critical error with custom parameters and human readable description.
|
void |
critical(java.lang.Throwable error,
java.lang.String description)
Record a critical error with human readable description.
|
void |
debug(java.lang.String message)
Record a debugging message.
|
void |
debug(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a debugging message with extra information attached.
|
void |
debug(java.lang.Throwable error)
Record an error as debugging information.
|
void |
debug(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a debug error with extra information attached.
|
void |
debug(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Record a debug error with custom parameters and human readable description.
|
void |
debug(java.lang.Throwable error,
java.lang.String description)
Record a debug error with human readable description.
|
void |
error(java.lang.String message)
Record an error message.
|
void |
error(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a error message with extra information attached.
|
void |
error(java.lang.Throwable error)
Record an error.
|
void |
error(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record an error with extra information attached.
|
void |
error(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Record an error with custom parameters and human readable description.
|
void |
error(java.lang.Throwable error,
java.lang.String description)
Record an error with human readable description.
|
void |
handleUncaughtErrors()
Handle all uncaught errors on current thread with this `Rollbar`.
|
void |
handleUncaughtErrors(java.lang.Thread thread)
Handle all uncaught errors on
thread with this `Rollbar`. |
void |
info(java.lang.String message)
Record an informational message.
|
void |
info(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record an informational message with extra information attached.
|
void |
info(java.lang.Throwable error)
Record an error as an info.
|
void |
info(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record an info error with extra information attached.
|
void |
info(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Record an info error with custom parameters and human readable description.
|
void |
info(java.lang.Throwable error,
java.lang.String description)
Record an info error with human readable description.
|
static Rollbar |
init(Config config)
Method to initialize the library managed notifier instance.
|
com.rollbar.api.payload.data.Level |
level(java.lang.Throwable error)
Get the level of the error or message.
|
void |
log(java.lang.String message)
Record a debugging message at the level returned by
level(java.lang.Throwable) (WARNING unless level
is overridden). |
void |
log(java.lang.String message,
com.rollbar.api.payload.data.Level level)
Record a message at the level specified.
|
void |
log(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a message with extra information attached at the default level returned by
level(java.lang.Throwable) , (WARNING unless level overridden). |
void |
log(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom,
com.rollbar.api.payload.data.Level level)
Record a message with extra information attached at the specified level.
|
void |
log(java.lang.Throwable error)
Log an error at the level returned by
level(java.lang.Throwable) . |
void |
log(java.lang.Throwable error,
com.rollbar.api.payload.data.Level level)
Log an error at level specified.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record an error with extra information attached at the default level returned by
level(java.lang.Throwable) . |
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
com.rollbar.api.payload.data.Level level)
Record an error with extra information attached at the level specified.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Record an error with custom parameters and human readable description at the default level
returned by
level(java.lang.Throwable) . |
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description,
com.rollbar.api.payload.data.Level level)
Record an error or message with extra data at the level specified.
|
void |
log(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description,
com.rollbar.api.payload.data.Level level,
boolean isUncaught)
Record an error or message with extra data at the level specified.
|
void |
log(java.lang.Throwable error,
java.lang.String description)
Record an error with human readable description at the default level returned by
level(java.lang.Throwable) . |
void |
log(java.lang.Throwable error,
java.lang.String description,
com.rollbar.api.payload.data.Level level)
Record a debug error with human readable description at the specified level.
|
void |
log(ThrowableWrapper error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description,
com.rollbar.api.payload.data.Level level,
boolean isUncaught)
Record an error or message with extra data at the level specified.
|
void |
warning(java.lang.String message)
Record a warning message.
|
void |
warning(java.lang.String message,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a warning message with extra information attached.
|
void |
warning(java.lang.Throwable error)
Record an error as a warning.
|
void |
warning(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom)
Record a warning error with extra information attached.
|
void |
warning(java.lang.Throwable error,
java.util.Map<java.lang.String,java.lang.Object> custom,
java.lang.String description)
Record a warning error with custom parameters and human readable description.
|
void |
warning(java.lang.Throwable error,
java.lang.String description)
Record a warning with human readable description.
|
public Rollbar(Config config)
config
- the configuration used by the notifier.public static Rollbar init(Config config)
config
- the configuration.public void handleUncaughtErrors()
public void handleUncaughtErrors(java.lang.Thread thread)
thread
with this `Rollbar`.thread
- the thread to handle errors on.public void configure(ConfigProvider configProvider)
ConfigBuilder
passed to configProvider is
preconfigured with the values of the current configuration.
This method potentially blocks to acquire a locks when
safely work with the configuration.configProvider
- the provider of a new configurationpublic void configure(Config config)
config
- the new configuration.public void critical(java.lang.Throwable error)
error
- the error.public void critical(java.lang.Throwable error, java.lang.String description)
error
- the error.description
- human readable description of error.public void critical(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the error.custom
- the extra information.public void critical(java.lang.String message)
message
- the message.public void critical(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the message.custom
- the extra information.public void critical(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the error.custom
- the custom data.description
- the human readable description of error.public void error(java.lang.Throwable error)
error
- the error.public void error(java.lang.Throwable error, java.lang.String description)
error
- the error.description
- human readable description of error.public void error(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the error.custom
- the extra information.public void error(java.lang.String message)
message
- the message.public void error(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the message.custom
- the extra information.public void error(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the error.custom
- the custom data.description
- the human readable description of error.public void warning(java.lang.Throwable error)
error
- the error.public void warning(java.lang.Throwable error, java.lang.String description)
error
- the error.description
- human readable description of error.public void warning(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the error.custom
- the extra information.public void warning(java.lang.String message)
message
- the message.public void warning(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the message.custom
- the extra information.public void warning(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the error.custom
- the custom data.description
- the human readable description of error.public void info(java.lang.Throwable error)
error
- the error.public void info(java.lang.Throwable error, java.lang.String description)
error
- the error.description
- human readable description of error.public void info(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the error.custom
- the extra information.public void info(java.lang.String message)
message
- the message.public void info(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the message.custom
- the extra information.public void info(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the error.custom
- the custom data.description
- the human readable description of error.public void debug(java.lang.Throwable error)
error
- the error.public void debug(java.lang.Throwable error, java.lang.String description)
error
- the error.description
- human readable description of error.public void debug(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
error
- the error.custom
- the extra information.public void debug(java.lang.String message)
message
- the message.public void debug(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
message
- the message.custom
- the extra information.public void debug(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
error
- the error.custom
- the custom data.description
- the human readable description of error.public void log(java.lang.Throwable error)
level(java.lang.Throwable)
.error
- the error.public void log(java.lang.Throwable error, java.lang.String description)
level(java.lang.Throwable)
.error
- the error.description
- human readable description of error.public void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom)
level(java.lang.Throwable)
.error
- the error.custom
- the extra information.public void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, com.rollbar.api.payload.data.Level level)
error
- the error.custom
- the extra information.level
- the level.public void log(java.lang.Throwable error, com.rollbar.api.payload.data.Level level)
error
- the error.level
- the level of the error.public void log(java.lang.Throwable error, java.lang.String description, com.rollbar.api.payload.data.Level level)
error
- the error.description
- human readable description of error.level
- the level.public void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description)
level(java.lang.Throwable)
.error
- the error.custom
- the custom data.description
- the human readable description of error.public void log(java.lang.String message)
level(java.lang.Throwable)
(WARNING unless level
is overridden).message
- the message.public void log(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom)
level(java.lang.Throwable)
, (WARNING unless level overridden).message
- the message.custom
- the extra information.public void log(java.lang.String message, com.rollbar.api.payload.data.Level level)
message
- the message.level
- the level.public void log(java.lang.String message, java.util.Map<java.lang.String,java.lang.Object> custom, com.rollbar.api.payload.data.Level level)
message
- the message.custom
- the extra information.level
- the level.public void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description, com.rollbar.api.payload.data.Level level)
Config.custom()
returns.error
- the error (if any).custom
- the custom data (if any).description
- the description of the error, or the message to send.level
- the level to send it at.public void log(java.lang.Throwable error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description, com.rollbar.api.payload.data.Level level, boolean isUncaught)
Config.custom()
returns.error
- the error (if any).custom
- the custom data (if any).description
- the description of the error, or the message to send.level
- the level to send it at.isUncaught
- whether or not this data comes from an uncaught exception.public void log(ThrowableWrapper error, java.util.Map<java.lang.String,java.lang.Object> custom, java.lang.String description, com.rollbar.api.payload.data.Level level, boolean isUncaught)
Config.custom()
returns.error
- the error (if any).custom
- the custom data (if any).description
- the description of the error, or the message to send.level
- the level to send it at.isUncaught
- whether or not this data comes from an uncaught exception.public com.rollbar.api.payload.data.Level level(java.lang.Throwable error)
Error
, ERROR for other
Throwable
, WARNING for messages. Override to change this default.error
- the error.public void close(boolean wait) throws java.lang.Exception
java.lang.Exception