Type Alias: DropDatabaseOptions
DropDatabaseOptions:
object
Options for dropDatabase and dropAllDatabases.
Type declaration
kvStore?
optionalkvStore:"idb"|"mem"|KVStoreProvider
Allows providing a custom implementation of the underlying storage layer.
Default is 'idb'.
logLevel?
optionallogLevel:LogLevel
Determines how much logging to do. When this is set to 'debug',
Replicache will also log 'info' and 'error' messages. When set to
'info' we log 'info' and 'error' but not 'debug'. When set to
'error' we only log 'error' messages.
Default is 'info'.
logSinks?
optionallogSinks:LogSink[]
Enables custom handling of logs.
By default logs are logged to the console. If you would like logs to be
sent elsewhere (e.g. to a cloud logging service like DataDog) you can
provide an array of LogSinks. Logs at or above
DropDatabaseOptions.logLevel are sent to each of these LogSinks.
If you would still like logs to go to the console, include
consoleLogSink in the array.
logSinks: [consoleLogSink, myCloudLogSink],
Default is [consoleLogSink].