diff --git a/jmolecules-bytebuddy/src/main/java/org/jmolecules/bytebuddy/PluginLogger.java b/jmolecules-bytebuddy/src/main/java/org/jmolecules/bytebuddy/PluginLogger.java index f6b6c6b..33e1dd9 100644 --- a/jmolecules-bytebuddy/src/main/java/org/jmolecules/bytebuddy/PluginLogger.java +++ b/jmolecules-bytebuddy/src/main/java/org/jmolecules/bytebuddy/PluginLogger.java @@ -115,9 +115,13 @@ public int compareTo(LogEntry o) { Comparator comparator = Comparator .comparing(LogEntry::getModule) - .thenComparing(LogEntry::getMessage); + .thenComparing(LogEntry::getExpandedMessage); return comparator.compare(this, o); } + + private String getExpandedMessage() { + return String.format(message.replace("{}", "%s"), parameters); + } } }