log

open fun log(level: LogLevel = LogLevel.WARN, customLoggers: List<RealmLogger> = emptyList()): S

Configure how Realm will report log events.

Parameters

level

all events at this level or higher will be reported.

customLoggers

any custom loggers to send log events to. A default system logger is installed by default that will redirect to the common logging framework on the platform, i.e. LogCat on Android and NSLog on iOS.