Conditional debug logging for Go libraries & applications