Skip to content

Commit

Permalink
Migrate all logging to SLF4J
Browse files Browse the repository at this point in the history
  • Loading branch information
NebelNidas committed Mar 10, 2024
1 parent 2cb3bbd commit 13e8810
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/matcher/PluginLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void run(String[] args) {
} else if (path.getFileName().toString().toLowerCase(Locale.ENGLISH).endsWith(".jar")) {
urls.add(path.toUri().toURL());
} else {
System.err.println("No plugin(s) found at " + path.toFile().getCanonicalPath());
Matcher.LOGGER.info("No plugin(s) found at {}", path.toFile().getCanonicalPath());
}
} catch (IOException e) {
throw new UncheckedIOException(e);
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/matcher/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import java.util.prefs.BackingStoreException;
import java.util.prefs.Preferences;

import matcher.Matcher;

public class Config {
public static void init(String[] args) {
Preferences prefs = Preferences.userRoot(); // in ~/.java/.userPrefs
Expand All @@ -34,7 +36,7 @@ public static void init(String[] args) {
Theme theme = Theme.getById(themeId);

if (theme == null) {
System.err.println("Startup arg '--theme' couldn't be applied, as there exists no theme with ID " + themeId + "!");
Matcher.LOGGER.error("Startup arg '--theme' couldn't be applied, as there exists no theme with ID {}", themeId);
} else {
setTheme(theme);
}
Expand Down

0 comments on commit 13e8810

Please sign in to comment.