Class RealmLog
On this page
io.realm.log
Global logger used by all Realm components. Custom loggers can be added by registering classes implementing RealmLogger .
Constructors
Constructor and Description |
---|
RealmLog () |
Method Summary
Modifier and Type | Method and Description |
---|---|
public static void | Adds a logger implementation that will be notified on log events. |
public static void | clear () Removes all loggers. |
public static void | Logs a LogLevel.DEBUG event. |
public static void | Logs a LogLevel.DEBUG event. |
public static void | Logs a LogLevel.DEBUG exception. |
public static void | Logs an LogLevel.ERROR event. |
public static void | Logs an LogLevel.ERROR event. |
public static void | Logs an LogLevel.ERROR exception. |
public static void | Logs a LogLevel.FATAL event. |
public static void | Logs an LogLevel.FATAL event. |
public static void | Logs a LogLevel.FATAL exception. |
public static int | |
public static void | Logs an LogLevel.INFO event. |
public static void | Logs an LogLevel.INFO event. |
public static void | Logs an LogLevel.INFO exception. |
public static void | Adds default native logger if it has been removed before. |
public static boolean | Removes the given logger if it is currently added. |
public static void | |
public static void | Logs a LogLevel.TRACE event. |
public static void | Logs a LogLevel.TRACE event. |
public static void | Logs a LogLevel.TRACE exception. |
public static void | Logs a LogLevel.WARN event. |
public static void | Logs a LogLevel.WARN event. |
public static void | Logs a LogLevel.WARN exception. |
Inherited Methods
Methods inherited from class java.lang.Object :
getClass
,hashCode
,equals
,clone
,toString
,notify
,notifyAll
,wait
,wait
,wait
,finalize
Constructor Detail
public RealmLog () |
---|
Method Detail
add
Adds a logger implementation that will be notified on log events. Parameters
|
clear
public static void clear () |
---|
Removes all loggers. The default native logger will be removed as well. Use registerDefaultLogger() to add it back. |
debug
Logs a LogLevel.DEBUG event. Parameters
|
Logs a LogLevel.DEBUG event. Parameters
|
error
Logs an LogLevel.ERROR event. Parameters
|
Logs an LogLevel.ERROR event. Parameters
|
fatal
Logs a LogLevel.FATAL event. Parameters
|
Logs an LogLevel.FATAL event. Parameters
|
getLevel
info
Logs an LogLevel.INFO event. Parameters
|
Logs an LogLevel.INFO event. Parameters
|
registerDefaultLogger
public static void registerDefaultLogger () |
---|
Adds default native logger if it has been removed before. If the default logger has been registered already, it won't be added again. The default logger on Android will log to logcat. |
remove
Removes the given logger if it is currently added. Returns
|
setLevel
trace
Logs a LogLevel.TRACE event. Parameters
|
Logs a LogLevel.TRACE event. Parameters
|
warn
Logs a LogLevel.WARN event. Parameters
|
Logs a LogLevel.WARN event. Parameters
|