public class Rollbar extends RollbarBase<java.lang.Void,Config>
bodyFactory, config, configReadLock, configReadWriteLock, configWriteLock, payloadTruncator| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean wait) |
Config |
config()
Get the current config.
|
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 custom data 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 custom data 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 data 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 custom data 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 custom data 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 data 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 custom data 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 custom data 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 data 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 custom data 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 custom data 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 data 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(Config config,
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(com.rollbar.notifier.config.Config, 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 custom data attached at the default level returned by
level(com.rollbar.notifier.config.Config, 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 custom data attached at the specified level.
|
void |
log(java.lang.Throwable error)
Log an error at the level returned by
level(com.rollbar.notifier.config.Config, 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 custom data attached at the default level returned by
level(com.rollbar.notifier.config.Config, 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 custom data 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 data and human readable description at the default level
returned by
level(com.rollbar.notifier.config.Config, 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(com.rollbar.notifier.config.Config, 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 |
sendJsonPayload(java.lang.String json)
Send JSON payload.
|
protected java.lang.Void |
sendPayload(Config config,
com.rollbar.api.payload.Payload payload) |
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 custom data 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 custom data 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 data and human readable description.
|
void |
warning(java.lang.Throwable error,
java.lang.String description)
Record a warning with human readable description.
|
buildData, level, process, processAppPackages, wrapThrowablepublic 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)
configure in class RollbarBase<java.lang.Void,Config>config - the new configuration.public com.rollbar.api.payload.data.Level level(Config config, java.lang.Throwable error)
Error, ERROR for other
Throwable, WARNING for messages. Use the methods on ConfigBuilder to
change these defaultsconfig - the current Config.error - the error.public Config config()
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 custom data.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 custom data.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 custom data.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 custom data.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 custom data.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 custom data.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 custom data.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 custom data.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 custom data.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 custom data.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(com.rollbar.notifier.config.Config, java.lang.Throwable).error - the error.public void log(java.lang.Throwable error,
java.lang.String description)
level(com.rollbar.notifier.config.Config, 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(com.rollbar.notifier.config.Config, java.lang.Throwable).error - the error.custom - the custom data.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 custom data.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(com.rollbar.notifier.config.Config, 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(com.rollbar.notifier.config.Config, 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(com.rollbar.notifier.config.Config, java.lang.Throwable), (WARNING unless level overridden).message - the message.custom - the custom data.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 custom data.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)
CommonConfig.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)
CommonConfig.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)
CommonConfig.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 close(boolean wait)
throws java.lang.Exception
java.lang.Exceptionpublic void sendJsonPayload(java.lang.String json)
json - the json payload.protected java.lang.Void sendPayload(Config config, com.rollbar.api.payload.Payload payload)
sendPayload in class RollbarBase<java.lang.Void,Config>