mirror of
https://github.com/caddyserver/website.git
synced 2025-06-18 20:24:56 -04:00
Lots of minor adjustments (#341)
This commit is contained in:
parent
618e4e559e
commit
620ff0ce35
18 changed files with 146 additions and 284 deletions
|
@ -178,7 +178,7 @@ Additionally, you should avoid performing expensive operations in `Provision`, s
|
|||
|
||||
#### Logs
|
||||
|
||||
If your module needs logging, do not use `log.Print*()` from the Go standard library. In other words, **do not use Go's global logger**. Caddy uses high-performance, highly flexible, structured logging with [zap](https://github.com/uber-go/zap).
|
||||
See [how logging works](/docs/logging) in Caddy. If your module needs logging, do not use `log.Print*()` from the Go standard library. In other words, **do not use Go's global logger**. Caddy uses high-performance, highly flexible, structured logging with [zap](https://github.com/uber-go/zap).
|
||||
|
||||
To emit logs, get a logger in your module's Provision method:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue