public interface Logger
RealmLog.add(Logger).
The different log levels are described in LogLevel.| Modifier and Type | Method and Description |
|---|---|
void |
debug(Throwable throwable,
String message,
Object... args)
Handles a
LogLevel.DEBUG event. |
void |
error(Throwable throwable,
String message,
Object... args)
Handles an
LogLevel.ERROR event. |
void |
fatal(Throwable throwable,
String message,
Object... args)
Handles a
LogLevel.FATAL event. |
int |
getMinimumNativeDebugLevel()
Defines which
LogLevel events this logger cares about from the native components. |
void |
info(Throwable throwable,
String message,
Object... args)
Handles an
LogLevel.INFO event. |
void |
trace(Throwable throwable,
String message,
Object... args)
Handles a
LogLevel.TRACE event. |
void |
warn(Throwable throwable,
String message,
Object... args)
Handles a
LogLevel.WARN event. |
int getMinimumNativeDebugLevel()
LogLevel events this logger cares about from the native components.
If multiple loggers are registered, the minimum value among all loggers is used.
Note that sending log events from the native layer is relatively expensive, so only set this value to events that are truly useful.
LogLevel native events this logger cares about.void trace(Throwable throwable, String message, Object... args)
LogLevel.TRACE event.throwable - optional exception to log.message - optional additional message.args - optional arguments used to format the message using String.format(String, Object...).void debug(Throwable throwable, String message, Object... args)
LogLevel.DEBUG event.throwable - optional exception to log.message - optional additional message.args - optional arguments used to format the message using String.format(String, Object...).void info(Throwable throwable, String message, Object... args)
LogLevel.INFO event.throwable - optional exception to log.message - optional additional message.args - optional arguments used to format the message using String.format(String, Object...).void warn(Throwable throwable, String message, Object... args)
LogLevel.WARN event.throwable - optional exception to log.message - optional additional message.args - optional arguments used to format the message using String.format(String, Object...).void error(Throwable throwable, String message, Object... args)
LogLevel.ERROR event.throwable - optional exception to log.message - optional additional message.args - optional arguments used to format the message using String.format(String, Object...).void fatal(Throwable throwable, String message, Object... args)
LogLevel.FATAL event.throwable - optional exception to log.message - optional additional message.args - optional arguments used to format the message using String.format(String, Object...).