Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.text.MessageFormat;
import java.util.ResourceBundle;
import java.util.function.Supplier;
import java.util.logging.Filter;
import java.util.logging.Handler;
import java.util.logging.Level;
import java.util.logging.LogRecord;
Expand Down Expand Up @@ -329,6 +330,8 @@ public Handler[] getHandlers() {

public void addHandler(Handler handler) {}

public void removeHandler(Handler handler) {}

public static PatchLogger getAnonymousLogger() {
return getLogger("");
}
Expand All @@ -341,6 +344,18 @@ public static PatchLogger getGlobal() {
return global;
}

public static void setFilter(Filter filter) {}

public static Filter getFilter() {
return null;
}

public static void setUseParentHandlers(boolean useParentHandlers) {}

public static boolean getUseParentHandlers() {
return true;
}

private static String getMessage(LogRecord record) {
String msg = record.getMessage();
Object[] params = record.getParameters();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ void testImplementsAllMethods() {
Set<MethodSignature> julLoggerMethods = new HashSet<>();
for (Method method : java.util.logging.Logger.class.getMethods()) {
String methodName = method.getName();
if (methodName.contains("Handler") || methodName.contains("Filter")) {
continue;
}
MethodSignature builder = new MethodSignature();
builder.name = methodName;
List<String> parameterTypes = new ArrayList<>();
Expand Down
Loading