Skip to content

cbrockington/safe-logging

 
 

Repository files navigation

Download

Safe-Logging

Interfaces and utilities for safe log messages.

License

This repository is made available under the Apache 2.0 License.

Usage

Add dependency to gradle:

compile "com.palantir.safe-logging:safe-logging"

Annotate log messages with named SafeArg and UnsafeArg as appropriate. For example:

// previously
log.info("Twisted the {} knob {} times", knobName, count);

// now
log.info("Twisted the {} knob {} times", UnsafeArg.of("knobName", knobName), SafeArg.of("count", count));

About

Interfaces and utilties for safe log messages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%