Docs Menu
Docs Home
/ /
io.realm.log

Clase RealmLog

java.lang.Object
io.realm.log.RealmLog

Registrador global utilizado por todos los componentes de Realm. Se pueden añadir registradores personalizados registrando clases que implementen RealmLogger.

Constructor y descripción
Modificador y Tipo
Método y descripción

vacío estático público

add (
)

Agrega una implementación de registrador que recibirá notificaciones sobre eventos de registro.

vacío estático público

Elimina todos los registradores.

vacío estático público

Throwable throwable,
String message,
)

Registra un evento LogLevel.DEBUG.

vacío estático público

Registra un evento LogLevel.DEBUG.

vacío estático público

Throwable throwable
)

Registra una excepción LogLevel.DEBUG.

vacío estático público

Throwable throwable,
String message,
)

Registra un evento LogLevel.ERROR.

vacío estático público

Registra un evento LogLevel.ERROR.

vacío estático público

vacío estático público

Throwable throwable,
String message,
)

Registra un evento LogLevel.FATAL.

vacío estático público

Registra un evento LogLevel.FATAL.

vacío estático público

Throwable throwable
)

Registra una excepción LogLevel.FATAL.

int estático público

Obtén el Nivel de registro actual.

vacío estático público

Throwable throwable,
String message,
)

Registra un evento LogLevel.INFO.

vacío estático público

Registra un evento LogLevel.INFO.

vacío estático público

Throwable throwable
)

Registra una excepción LogLevel.INFO.

vacío estático público

Agrega el registrador nativo predeterminado si se ha eliminado anteriormente.

booleano estático público

Remueve el registrador si este ha sido agregado anteriormente.

vacío estático público

int level
)

Establece el nivel de registro actual.

vacío estático público

Throwable throwable,
String message,
)

Registra un evento LogLevel.TRACE.

vacío estático público

Registra un evento LogLevel.TRACE.

vacío estático público

Throwable throwable
)

Registra una excepción LogLevel.TRACE.

vacío estático público

Throwable throwable,
String message,
)

Registra un evento LogLevel.WARN.

vacío estático público

Registra un evento LogLevel.WARN.

vacío estático público

Throwable throwable
)

Registra una excepción LogLevel.WARN.

  • Métodos heredados de la clase java.lang.Object: getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public RealmLog ()

public static void add (
)

Agrega una implementación de registrador que recibirá notificaciones sobre eventos de registro.

Parámetros

  • logger - la referencia a una implementación de RealmLogger.

public static void clear ()

Elimina todos los registradores. El registrador nativo predeterminado también se eliminará. Usa registerDefaultLogger() para volver a agregarlo.

public static void debug (
Throwable throwable,
String message,
)

Registra un evento LogLevel.DEBUG.

Parámetros

  • throwable - excepción opcional al registro.

  • message - mensaje opcional.

  • args - argumentos opcionales utilizados para formatear el mensaje usando String.format(String, Object...).

public static void debug (
)

Registra un evento LogLevel.DEBUG.

Parámetros

public static void debug (
Throwable throwable
)

Registra una excepción LogLevel.DEBUG.

Parámetros

  • throwable - excepción al registro.

public static void error (
Throwable throwable,
String message,
)

Registra un evento LogLevel.ERROR.

Parámetros

  • throwable - excepción opcional al registro.

  • message - mensaje opcional.

  • args - argumentos opcionales utilizados para formatear el mensaje usando String.format(String, Object...).

public static void error (
)

Registra un evento LogLevel.ERROR.

Parámetros

public static void error (
Throwable throwable
)

Registra una excepción LogLevel.ERROR.

Parámetros

  • throwable - excepción al registro.

public static void fatal (
Throwable throwable,
String message,
)

Registra un evento LogLevel.FATAL.

Parámetros

  • throwable - excepción opcional al registro.

  • message - mensaje opcional.

  • args - argumentos opcionales utilizados para formatear el mensaje usando String.format(String, Object...).

public static void fatal (
)

Registra un evento LogLevel.FATAL.

Parámetros

public static void fatal (
Throwable throwable
)

Registra una excepción LogLevel.FATAL.

Parámetros

  • throwable - excepción al registro.

public static int getLevel ()

Obtén el Nivel de registro actual.

Devuelve

el nivel de registro actual.

public static void info (
Throwable throwable,
String message,
)

Registra un evento LogLevel.INFO.

Parámetros

  • throwable - excepción opcional al registro.

  • message - mensaje opcional.

  • args - argumentos opcionales utilizados para formatear el mensaje usando String.format(String, Object...).

public static void info (
)

Registra un evento LogLevel.INFO.

Parámetros

public static void info (
Throwable throwable
)

Registra una excepción LogLevel.INFO.

Parámetros

  • throwable - excepción al registro.

public static void registerDefaultLogger ()

Añade el registrador nativo predeterminado si se ha eliminado previamente. Si ya se ha registrado, no se volverá a añadir. El registrador predeterminado en Android registrará en Logcat.

public static boolean remove (
)

Remueve el registrador si este ha sido agregado anteriormente.

Devuelve

true si se eliminó el registrador, false en caso contrario.

public static void setLevel (
int level
)

Establece el nivel de registro actual. Su configuración afectará a todos los registradores registrados.

Parámetros

public static void trace (
Throwable throwable,
String message,
)

Registra un evento LogLevel.TRACE.

Parámetros

  • throwable - excepción opcional al registro.

  • message - mensaje opcional.

  • args - argumentos opcionales utilizados para formatear el mensaje usando String.format(String, Object...).

public static void trace (
)

Registra un evento LogLevel.TRACE.

Parámetros

public static void trace (
Throwable throwable
)

Registra una excepción LogLevel.TRACE.

Parámetros

  • throwable - excepción al registro.

public static void warn (
Throwable throwable,
String message,
)

Registra un evento LogLevel.WARN.

Parámetros

  • throwable - excepción opcional al registro.

  • message - mensaje opcional.

  • args - argumentos opcionales utilizados para formatear el mensaje usando String.format(String, Object...).

public static void warn (
)

Registra un evento LogLevel.WARN.

Parámetros

public static void warn (
Throwable throwable
)

Registra una excepción LogLevel.WARN.

Parámetros

  • throwable - excepción al registro.

Volver

Nivel de registro

En esta página