io.quarkiverse.loggingjson.JsonProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkiverse-logging-json Show documentation
Show all versions of quarkiverse-logging-json Show documentation
Logging in json with support for custom fields
package io.quarkiverse.loggingjson;
import java.io.IOException;
import org.jboss.logmanager.ExtLogRecord;
public interface JsonProvider {
/**
* Called every time log output is getting formatted.
*
* @param generator Used to add data to the json log output.
* @param event The log event to handle.
* @throws IOException When failed to format the event.
*/
void writeTo(JsonGenerator generator, ExtLogRecord event) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy