mirror of
https://github.com/AsamK/signal-cli
synced 2025-09-01 03:50:38 +00:00
Add --scrub-log flag to remove possibly sensitive information from the log
This commit is contained in:
parent
2e8e81a926
commit
1d77153a2b
7 changed files with 308 additions and 17 deletions
|
@ -0,0 +1,12 @@
|
|||
package org.asamk.signal.logging;
|
||||
|
||||
import ch.qos.logback.classic.PatternLayout;
|
||||
import ch.qos.logback.classic.spi.ILoggingEvent;
|
||||
|
||||
public class ScrubberPatternLayout extends PatternLayout {
|
||||
|
||||
@Override
|
||||
public String doLayout(ILoggingEvent event) {
|
||||
return Scrubber.scrub(super.doLayout(event)).toString();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue