public static class XrLog


Provides a set of common functions for logging JetpackXR messages, as well as controlling at compile time which messages will actually be printed to Android Logcat.

Summary

Nested types

public final class XrLog.Level implements Comparable

Describes the priority of a log message.

Public fields

static @NonNull XrLog

Public methods

final @NonNull XrLog.Level

The minimum log level that will be printed if isEnabled.

final boolean

Whether or not messages meeting the current level will be printed to Android Logcat.

final void
setEnabled(boolean value)

Whether or not messages meeting the current level will be printed to Android Logcat.

final void

The minimum log level that will be printed if isEnabled.

Public fields

INSTANCE

Added in 1.0.0-alpha13
public static @NonNull XrLog INSTANCE

Public methods

getLevel

Added in 1.0.0-alpha13
public final @NonNull XrLog.Level getLevel()

The minimum log level that will be printed if isEnabled.

isEnabled

Added in 1.0.0-alpha13
public final boolean isEnabled()

Whether or not messages meeting the current level will be printed to Android Logcat.

setEnabled

Added in 1.0.0-alpha13
public final void setEnabled(boolean value)

Whether or not messages meeting the current level will be printed to Android Logcat.

setLevel

Added in 1.0.0-alpha13
public final void setLevel(@NonNull XrLog.Level value)

The minimum log level that will be printed if isEnabled.