MCPcopy
hub / github.com/dgraph-io/badger / WithLoggingLevel

Method WithLoggingLevel

options.go:239–242  ·  view source on GitHub ↗

WithLoggingLevel returns a new Options value with logging level of the default logger set to the given value. LoggingLevel sets the level of logging. It should be one of DEBUG, INFO, WARNING or ERROR levels. The default value of LoggingLevel is INFO.

(val loggingLevel)

Source from the content-addressed store, hash-verified

237//
238// The default value of LoggingLevel is INFO.
239func (opt Options) WithLoggingLevel(val loggingLevel) Options {
240 opt.Logger = defaultLogger(val)
241 return opt
242}
243
244// WithSyncWrites returns a new Options value with SyncWrites set to the given value.
245//

Callers

nothing calls this directly

Calls 1

defaultLoggerFunction · 0.85

Tested by

no test coverage detected