List of usage examples for java.util.logging Logger logp
public void logp(Level level, String sourceClass, String sourceMethod, Supplier<String> msgSupplier)
From source file:co.runrightfast.core.utils.LoggingUtils.java
/** * Helper for logging JSON messages//from ww w . ja va 2s . co m * * @param logger * @param level * @param className * @param method * @param message */ static void log(@NonNull final Logger logger, final Level level, final String className, final String method, @NonNull final Supplier<JsonObject> message) { logger.logp(level, className, method, () -> message.get().toString()); }