Class SerializedLayout

    • Method Detail

      • toByteArray

        public byte[] toByteArray​(LogEvent event)
        Deprecated.
        Formats a LogEvent as a serialized byte array of the LogEvent object.
        Parameters:
        event - The LogEvent.
        Returns:
        the formatted LogEvent.
      • toSerializable

        public LogEvent toSerializable​(LogEvent event)
        Deprecated.
        Returns the LogEvent.
        Parameters:
        event - The Logging Event.
        Returns:
        The LogEvent.
      • getContentType

        public String getContentType()
        Deprecated.
        SerializedLayout returns a binary stream.
        Returns:
        The content type.