Skip to content
jinleileiking edited this page Feb 14, 2019 · 5 revisions

Enable debug messages by setting system env vars.

PIONS_LOG_TRACE=all go run xxx.go

If TRACE enabled, it will show the trace,debug ... logs.

If DEBUG enabled, it will show debug, warn ... logs.

see pkg/logging/scoped.go for more details.

Clone this wiki locally