docs: General 2.6 updates

This commit is contained in:
Matthew Holt 2022-09-16 17:03:41 -06:00
parent a87295bf0b
commit c429966513
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5
4 changed files with 13 additions and 5 deletions

View file

@ -184,7 +184,7 @@ To emit logs, get a logger in your module's Provision method:
```go
func (g *Gizmo) Provision(ctx caddy.Context) error {
g.logger = ctx.Logger(g) // g.logger is a *zap.Logger
g.logger = ctx.Logger() // g.logger is a *zap.Logger
}
```