mirror of
https://github.com/caddyserver/website.git
synced 2025-05-09 04:55:02 -04:00
docs: General 2.6 updates
This commit is contained in:
parent
a87295bf0b
commit
c429966513
4 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue