Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
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 and Description
Modificador y Tipo
Método y descripción

public static void

add (
)

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

public static void

Removes all loggers.

public static void

Throwable throwable,
String message,
)

Logs a LogLevel.DEBUG event.

public static void

Logs a LogLevel.DEBUG event.

public static void

Throwable throwable
)

Registra una excepción LogLevel.DEBUG.

public static void

Throwable throwable,
String message,
)

Registra un evento LogLevel.ERROR.

public static void

Registra un evento LogLevel.ERROR.

public static void

Throwable throwable
)

Registra una excepción LogLevel.ERROR.

public static void

Throwable throwable,
String message,
)

Registra un evento LogLevel.FATAL.

public static void

Logs an LogLevel.FATAL event.

public static void

Throwable throwable
)

Registra una excepción LogLevel.FATAL.

public static int

Obtén el Nivel de registro actual.

public static void

Throwable throwable,
String message,
)

Registra un evento LogLevel.INFO.

public static void

Registra un evento LogLevel.INFO.

public static void

Throwable throwable
)

Registra una excepción LogLevel.INFO.

public static void

Agrega el registrador nativo predeterminado si se ha eliminado anteriormente.

public static boolean

Remueve el registrador si este ha sido agregado anteriormente.

public static void

int level
)

Establece el nivel de registro actual.

public static void

Throwable throwable,
String message,
)

Registra un evento LogLevel.TRACE.

public static void

Registra un evento LogLevel.TRACE.

public static void

Throwable throwable
)

Registra una excepción LogLevel.TRACE.

public static void

Throwable throwable,
String message,
)

Registra un evento LogLevel.WARN.

public static void

Registra un evento LogLevel.WARN.

public static void

Throwable throwable
)

Logs a LogLevel.WARN exception.

  • 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 ()

Removes all loggers. The default native logger will be removed as well. Use registerDefaultLogger() to add it back.

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

Logs a LogLevel.DEBUG event.

Parámetros

  • throwable - optional exception to log.

  • message - mensaje opcional.

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

public static void debug (
)

Logs a LogLevel.DEBUG event.

Parámetros

public static void debug (
Throwable throwable
)

Registra una excepción LogLevel.DEBUG.

Parámetros

  • throwable - exception to log.

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

Registra un evento LogLevel.ERROR.

Parámetros

  • throwable - optional exception to log.

  • 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 - exception to log.

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

Registra un evento LogLevel.FATAL.

Parámetros

  • throwable - optional exception to log.

  • message - mensaje opcional.

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

public static void fatal (
)

Logs an LogLevel.FATAL event.

Parámetros

public static void fatal (
Throwable throwable
)

Registra una excepción LogLevel.FATAL.

Parámetros

  • throwable - exception to log.

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 - optional exception to log.

  • 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 - exception to log.

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.

public static boolean remove (
)

Remueve el registrador si este ha sido agregado anteriormente.

Devuelve

true si el registrador fue eliminado, false de lo contrario.

public static void setLevel (
int level
)

Sets the current LogLevel . Setting this will affect all registered loggers.

Parámetros

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

Registra un evento LogLevel.TRACE.

Parámetros

  • throwable - optional exception to log.

  • 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 - exception to log.

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

Registra un evento LogLevel.WARN.

Parámetros

  • throwable - optional exception to log.

  • 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
)

Logs a LogLevel.WARN exception.

Parámetros

  • throwable - exception to log.

Volver

Nivel de registro

En esta página