Conditional debug logging for Golang libraries & applications