logError

public void logError(@NonNull() String message)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

Parameters

message

the message to remotely log


public void logError(@NonNull() String message, @Nullable() Map<String, Object> properties)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

Parameters

message

the message to remotely log

properties

custom key-value pairs to include with the log message


public void logError(    @NonNull() String message,     @Nullable() Map<String, Object> properties,     boolean allowScreenshot)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

Parameters

message

the message to remotely log

properties

custom key-value pairs to include with the log message

allowScreenshot

true if a screenshot should be taken for this message, false otherwise


public void logError(    @NonNull() String message,     @Nullable() Map<String, Object> properties,     boolean allowScreenshot,     @Nullable() String javascriptStackTrace)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

Parameters

message

the message to remotely log

properties

custom key-value pairs to include with the log message

allowScreenshot

true if a screenshot should be taken for this message, false otherwise

javascriptStackTrace

javascript stack trace coming from the the RN side


public void logError(    @NonNull() String message,     @Nullable() Map<String, Object> properties,     boolean allowScreenshot,     @Nullable() String javascriptStackTrace,     boolean isException)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

Parameters

message

the message to remotely log

properties

custom key-value pairs to include with the log message

allowScreenshot

true if a screenshot should be taken for this message, false otherwise

javascriptStackTrace

javascript stack trace coming from the the RN side

isException

mark the log as an exception


public void logError(@NonNull() Throwable e)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

The stacktrace from the throwable will be used instead of the stack trace from where this method is called.

Parameters

e

the throwable to remotely log


public void logError(@NonNull() Throwable e, @Nullable() Map<String, Object> properties)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

The stacktrace from the throwable will be used instead of the stack trace from where this method is called.

Parameters

e

the throwable to remotely log

properties

custom key-value pairs to include with the log message


public void logError(    @NonNull() Throwable e,     @Nullable() Map<String, Object> properties,     boolean allowScreenshot)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

The stacktrace from the throwable will be used instead of the stack trace from where this method is called.

Parameters

e

the throwable to remotely log

properties

custom key-value pairs to include with the log message

allowScreenshot

true if a screenshot should be taken for this message, false otherwise


public void logError(    @NonNull() Throwable e,     @NonNull() String message,     @Nullable() Map<String, Object> properties,     boolean allowScreenshot)

Remotely logs a message at ERROR level. These log messages will appear as part of the session timeline, and can be used to describe what was happening at a particular time within the app.

If enabled for the current app, a screenshot will automatically be taken when the error is logged, and displayed on the dashboard with the error message.

The stacktrace from the throwable will be used instead of the stack trace from where this method is called.

Parameters

exc

the throwable to remotely log

message

message to log (overrides getLocalizedMessage() from e)

properties

custom key-value pairs to include with the log message

allowScreenshot

true if a screenshot should be taken for this message, false otherwise