MCPcopy
hub / github.com/caddyserver/caddy / provision

Method provision

logging.go:452–465  ·  view source on GitHub ↗
(ctx Context, logging *Logging)

Source from the content-addressed store, hash-verified

450}
451
452func (sll *SinkLog) provision(ctx Context, logging *Logging) error {
453 if err := sll.provisionCommon(ctx, logging); err != nil {
454 return err
455 }
456
457 options, err := sll.buildOptions()
458 if err != nil {
459 return err
460 }
461
462 logger := zap.New(sll.core, options...)
463 ctx.cleanupFuncs = append(ctx.cleanupFuncs, zap.RedirectStdLog(logger))
464 return nil
465}
466
467// CustomLog represents a custom logger configuration.
468//

Callers 2

openLogsMethod · 0.45
setupNewDefaultMethod · 0.45

Calls 2

provisionCommonMethod · 0.80
buildOptionsMethod · 0.80

Tested by

no test coverage detected