Class EchoLayout<E>

  • All Implemented Interfaces:
    Layout<E>, ContextAware, LifeCycle

    public class EchoLayout<E>
    extends LayoutBase<E>
    This internal logback API is not supported by AEM as a Cloud Service.
    Echos the incoming object adding a line separator character(s) at the end.
    • Constructor Detail

      • EchoLayout

        public EchoLayout()
    • Method Detail

      • doLayout

        public java.lang.String doLayout​(E event)
        Description copied from interface: Layout
        Transform an event (of type Object) and return it as a String after appropriate formatting.

        Taking in an object and returning a String is the least sophisticated way of formatting events. However, it is remarkably CPU-effective.

        event - The event to format
        the event formatted as a String