Skip to content
Sean DuBois edited this page Jan 29, 2020 · 3 revisions

Pion

Enable debug messages by setting system env vars.

PION_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.

PION_LOG_TRACE=ice PION_LOG_DEBUG=pc,dtls PIONS_LOG_INFO=all

That will do

trace: ice
debug: pc dtls
info: everything else!