Couchbase Lite
Objective-C API for iOS and Mac OS
CBLRemoteLogging Class Reference
Inheritance diagram for CBLRemoteLogging:
CBLTimeSeries

Instance Methods

(void) - enableLogging:
 
- Instance Methods inherited from CBLTimeSeries
(nullable instancetype) - initWithDatabase:docType:error:
 Initializes a new CBLTimeSeries. More...
 
(void) - addEvent:
 Adds an event, timestamped with the current time. More...
 
(void) - addEvent:atTime:
 Adds an event with a custom timestamp (which must be greater than the last timestamp.) Can be called on any thread. More...
 
(void) - flushAsync:
 Writes all pending events to documents asynchronously, then calls the onFlushed block (with parameter YES on success, NO if there were any errors.) Can be called on any thread. More...
 
(BOOL) - flush
 Writes all pending events to documents before returning. More...
 
(void) - stop
 Stops the CBLTimeSeries, immediately flushing all pending events. More...
 
(CBLReplication *) - createPushReplication:purgeWhenPushed:
 Creates, but does not start, a new CBLReplication to push the events to a remote database. More...
 
(NSEnumerator< CBLJSONDict * > *) - eventsFromDate:toDate:error:
 Enumerates the events stored in the database from time t0 to t1, inclusive. More...
 

Class Methods

(nullable instancetype) + sharedInstance
 
- Class Methods inherited from CBLTimeSeries
(BOOL) + enumerateEventsInDocument:usingBlock:
 Enumerates the events in a single time-series document. More...
 

Additional Inherited Members

- Public Types inherited from CBLTimeSeries
typedef void(^ CBLTimeSeriesEnumerationBlock) (CBLJSONDict *event, CFAbsoluteTime time, BOOL *stop)
 Callback for single-document enumeration. More...
 
- Properties inherited from CBLTimeSeries
NSString * docType
 The "type" property that will be added to documents. More...
 
NSString * docIDPrefix
 A prefix for the IDs of documents created by this object. More...
 
NSError * lastError
 The latest error encountered. More...
 

Method Documentation

◆ sharedInstance()

+ (nullable instancetype) sharedInstance

◆ enableLogging:()

- (void) enableLogging: (NSArray *)  types

The documentation for this class was generated from the following file: