Search in sources :

Example 1 with LogLevel

use of com.amplifyframework.logging.LogLevel in project amplify-android by aws-amplify.

the class DevMenuLogsFragment method displayFilteredLogs.

/**
 * Display the logs that contain the provided search query and
 * whose log level matches the selected log level.
 */
private void displayFilteredLogs() {
    logsText.setText(R.string.placeholder_logs);
    LogLevel selectedLogLevel = null;
    if (selectedLogsFilterItem.getItemId() != R.id.all_logs) {
        selectedLogLevel = LogLevel.valueOf(selectedLogsFilterItem.getTitle().toString().toUpperCase(Locale.US));
    }
    logsText.setText(developerMenu.getFilteredLogs(searchQuery, selectedLogLevel));
}
Also used : LogLevel(com.amplifyframework.logging.LogLevel)

Aggregations

LogLevel (com.amplifyframework.logging.LogLevel)1