CBLLog

@interface CBLLog : NSObject

Log allows to configure console and file logger or to set a custom logger.

  • Console logger writing log messages to the system console.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CBLConsoleLogger *_Nonnull console;

    Swift

    var console: CBLConsoleLogger { get }
  • File logger writing log messages to files.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CBLFileLogger *_Nonnull file;

    Swift

    var file: CBLFileLogger { get }
  • For setting a custom logger. Changing the log level of the assigned custom logger will require the custom logger to be reassigned so that the change can be affected.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) id<CBLLogger> custom;
  • Not available

    Declaration

    Objective-C

    - (nonnull instancetype)init;