-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use lambda loggers and fix message format for JUL
Closes: #1195
- Loading branch information
Showing
8 changed files
with
76 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
package org.sqlite.util; | ||
|
||
import java.util.function.Supplier; | ||
|
||
/** A simple internal Logger interface. */ | ||
public interface Logger { | ||
boolean isTraceEnabled(); | ||
|
||
void trace(String format, Object o1, Object o2); | ||
|
||
void info(String format, Object o1, Object o2); | ||
|
||
void warn(String msg); | ||
void trace(Supplier<String> message); | ||
|
||
void error(String message, Throwable t); | ||
void info(Supplier<String> message); | ||
|
||
void error(String format, Object o1, Throwable t); | ||
void warn(Supplier<String> message); | ||
|
||
void error(String format, Object o1, Object o2, Throwable t); | ||
void error(Supplier<String> message, Throwable t); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters