From 58c1169fec47bace0efcdbf2680c8acb6efde2ae Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 2 Mar 2016 19:10:55 +0000 Subject: [PATCH] Make FINEST matcher logging options available to end users --- source/net/filebot/Logging.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/Logging.java b/source/net/filebot/Logging.java index 956e209c..8ed7e5da 100644 --- a/source/net/filebot/Logging.java +++ b/source/net/filebot/Logging.java @@ -15,8 +15,8 @@ import org.codehaus.groovy.runtime.StackTraceUtils; public final class Logging { + private static final SystemProperty anonymizePattern = SystemProperty.of("net.filebot.logging.anonymize", Pattern::compile); private static final SystemProperty debugLevel = SystemProperty.of("net.filebot.logging.debug", Level::parse, Level.CONFIG); - private static final SystemProperty anonymizePattern = SystemProperty.of("net.filebot.logging.anonymize", s -> Pattern.compile(s, Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CHARACTER_CLASS | Pattern.MULTILINE)); public static final Logger log = getConsoleLogger("net.filebot.console", Level.ALL, new ConsoleFormatter(anonymizePattern.get())); public static final Logger debug = getConsoleLogger("net.filebot.debug", debugLevel.get(), new ConsoleFormatter(anonymizePattern.get()));