There was an error while loading. Please reload this page.
bdlm/log supports a "blacklist" of values that should not be logged. This can be used to help prevent or mitigate leaking secrets into log files:
bdlm/log
import ( "github.com/bdlm/log" ) func main() { log.AddSecret("some-secret-text") log.Info("the secret is 'some-secret-text'") // Output: the secret is '****************' }
Home Sample script
Simple usage Customization Environments
Standard fields Structured fields Logging levels Testing
Secrets Multiple outputs io.Writer Fatal handlers Hooks
Standard Formatting * Customization * Verbose Output Custom formatters TTY Color Customization