Private
Readonly
flushPrivate
mPrivate
mPrivate
mPrivate
mPrivate
mWhen true, will attempt to re-insert the events that failed to be flushed into the beginning of the cache.
Current state of caching / event flush interval.
Use setEventCacheFlushInterval()
and disableEventCaching()
to enable and disable (respectively) caching and flush interval usage.
Delay that will be used when creating the event loop interval for flushing queued events.
default = 250
Maximum events allowed to be cached before
automatic pruning takes effect.
See log()
for more info.
default = 1000
Uses native-level formatting, and automatically inserts newlines between events when writing formatted content to the log cache.
Manually close the current active file stream which logs are being written to.
Call this if your app is about to close and you want to prevent potential log data loss
(e.g. if the app is about to be killed non-gracefully and native on-destroy callbacks will not get called)
Customize how this plugin should operate.
Get info about the debugging state of the app (i.e. whether or not we're attached to a developer console).
Generates a log event that will be cached for the next
event flush cycle, where all cached events will be handed to the plugin.
If this would cause the cache to become larger than maxCachedEvents
,
the oldest item from the cache is removed after this new event is added.
Private
onPrivate
onPrivate
prependPrivate
purgeAdds the given event to the event cache, which will be flushed on a fixed interval.
Generated using TypeDoc
Customizable callback to handle when event cache flush fails.