LoggerConfiguration: {
    callback?: ((log) => void);
    callbackLogLevel: LogLevel;
    logDir?: string;
    logLevel: LogLevel;
}

Represents the configuration options for logging.

Type declaration

  • Optional Readonly callback?: ((log) => void)
      • (log): void
      • An optional closure that is called when a log event occurs at or above the LoggerConfiguration.callbackLogLevel. Use this closure to handle or process log events as they occur.

        Parameters

        • log: {
              logLevel: LogLevel;
              message?: string;
              tag?: string;
          }
          • logLevel: LogLevel
          • Optional message?: string
          • Optional tag?: string

        Returns void

  • Readonly callbackLogLevel: LogLevel

    Threshold level to call the callback function.

  • Optional Readonly logDir?: string

    An optional directory to store logs.

    • iOS: Uses a default directory if not provided.
    • Android: Logs won't be stored if not provided. Use () to get the directory path.
  • Readonly logLevel: LogLevel

    Threshold level to record logs on file and console.

Generated using TypeDoc