Logger: ((level, message) => void)

A callback passed to Realm.App.Sync.setLogger when instrumenting the Atlas Device Sync client with a custom logger.

Type declaration

    • (level, message): void
    • Parameters

      • level: NumericLogLevel

        The level of the log entry between 0 and 8 inclusively. Use this as an index into ['all', 'trace', 'debug', 'detail', 'info', 'warn', 'error', 'fatal', 'off'] to get the name of the level.

      • message: string

        The message of the log entry.

      Returns void

Generated using TypeDoc