Class LiferayXmlLayout

Object
org.apache.logging.log4j.core.layout.AbstractLayout<String>
org.apache.logging.log4j.core.layout.AbstractStringLayout
com.liferay.portal.log4j.internal.LiferayXmlLayout
All Implemented Interfaces:
org.apache.logging.log4j.core.impl.LocationAware, org.apache.logging.log4j.core.Layout<String>, org.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>, org.apache.logging.log4j.core.StringLayout

@Plugin(category="Core", elementType="layout", name="LiferayXmlLayout", printObject=true) public final class LiferayXmlLayout extends org.apache.logging.log4j.core.layout.AbstractStringLayout
Author:
Hai Yu
See Also:
  • Log4j1XmlLayout
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout

    org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer, org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer2
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout

    DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE

    Fields inherited from class org.apache.logging.log4j.core.layout.AbstractLayout

    configuration, eventCount, footer, header, LOGGER

    Fields inherited from interface org.apache.logging.log4j.core.Layout

    ELEMENT_TYPE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encode(org.apache.logging.log4j.core.LogEvent logEvent, org.apache.logging.log4j.core.layout.ByteBufferDestination byteBufferDestination)
     
     
    toSerializable(org.apache.logging.log4j.core.LogEvent logEvent)
     

    Methods inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout

    getBytes, getCharset, getContentType, getFooter, getFooterSerializer, getHeader, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize

    Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout

    getConfiguration, getContentFormat, markEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.logging.log4j.core.Layout

    getContentFormat
  • Field Details

  • Method Details

    • newBuilder

      @PluginBuilderFactory public static LiferayXmlLayout.Builder newBuilder()
    • encode

      public void encode(org.apache.logging.log4j.core.LogEvent logEvent, org.apache.logging.log4j.core.layout.ByteBufferDestination byteBufferDestination)
      Specified by:
      encode in interface org.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>
      Overrides:
      encode in class org.apache.logging.log4j.core.layout.AbstractLayout<String>
    • toSerializable

      public String toSerializable(org.apache.logging.log4j.core.LogEvent logEvent)