Class MessageJsonProvider

java.lang.Object
java.util.logging.Formatter
org.jboss.logmanager.ExtFormatter
io.quarkiverse.loggingjson.providers.MessageJsonProvider
All Implemented Interfaces:
Enabled, JsonProvider

public class MessageJsonProvider extends org.jboss.logmanager.ExtFormatter implements JsonProvider, Enabled
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jboss.logmanager.ExtFormatter

    org.jboss.logmanager.ExtFormatter.Delegating
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    format(org.jboss.logmanager.ExtLogRecord record)
     
    boolean
     
    void
    writeTo(JsonGenerator generator, org.jboss.logmanager.ExtLogRecord event)
    Called every time log output is getting formatted.

    Methods inherited from class org.jboss.logmanager.ExtFormatter

    format, formatMessage, formatMessageLegacy, formatMessageNone, formatMessagePrintf, isCallerCalculationRequired, wrap

    Methods inherited from class java.util.logging.Formatter

    getHead, getTail

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(JsonGenerator generator, org.jboss.logmanager.ExtLogRecord event) throws IOException
      Description copied from interface: JsonProvider
      Called every time log output is getting formatted.
      Specified by:
      writeTo in interface JsonProvider
      Parameters:
      generator - Used to add data to the json log output.
      event - The log event to handle.
      Throws:
      IOException - When failed to format the event.
    • format

      public String format(org.jboss.logmanager.ExtLogRecord record)
      Specified by:
      format in class org.jboss.logmanager.ExtFormatter
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Enabled