Logging messages

Logging messages

We try our best to collect and surface up meaningful information about your application in order to build up a context as to what is happening on your users’ mobile devices. However, sometimes a well-placed and descriptive log message complementing that data can provide a much clearer view into what’s happening on your users’ phones.

In addition to whatever custom message you’d like to set, log messages come in three flavors: INFO, WARNING, and ERROR. All log messages contain information about the calling thread’s stack trace and have the ability to set custom properties.

Info messages are called via

Embrace.getInstance().logInfo("<Name>", props);

Warning messages are called via

Embrace.getInstance().logWarning("<Name>", props);

Error messages are called via

Embrace.getInstance().logError("<Name>", props);