Logback appenders for scrubbing sensitive data from logs
Require [nl.mediquest.logback.masking-pattern-layouts "1.0.2"]
.
Include the pattern layouts in your appender. E.g.,:
<appender name="GCLOUD" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="nl.mediquest.logback.StackdriverMaskingPatternLayout">
<pattern>%msg</pattern>
</layout>
</encoder>
</appender>
<appender name="SENTRY" class="io.sentry.logback.SentryAppender">
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="nl.mediquest.logback.MaskingPatternLayout">
<pattern>%msg</pattern>
</layout>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
</appender>
{"message":":nl.mediquest.upload-backend.main/init {:password *****}","severity":"INFO","thread":"main","logger":"nl.mediquest.upload-backend.main"}
Run unit tests via:
lein test :unit
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close