MCPcopy
hub / github.com/kopia/kopia / SetLoggerFactory

Method SetLoggerFactory

cli/app.go:217–220  ·  view source on GitHub ↗

SetLoggerFactory sets the logger factory to be used throughout the app.

(loggerForModule logging.LoggerFactory, contentLogWriter io.Writer)

Source from the content-addressed store, hash-verified

215
216// SetLoggerFactory sets the logger factory to be used throughout the app.
217func (c *App) SetLoggerFactory(loggerForModule logging.LoggerFactory, contentLogWriter io.Writer) {
218 c.loggerFactory = loggerForModule
219 c.contentLogWriter = contentLogWriter
220}
221
222// RegisterOnExit registers the provided function to run before app exits.
223func (c *App) RegisterOnExit(f func()) {

Callers 1

initializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected