Class ServletAppender

    • Method Detail

      • append

        public void append​(LogEvent event)
        Description copied from interface: Appender
        Logs a LogEvent using whatever logic this Appender wishes to use. It is typically recommended to use a bridge pattern not only for the benefits from decoupling an Appender from its implementation, but it is also handy for sharing resources which may require some form of locking.
        Parameters:
        event - The LogEvent.
      • createAppender

        @Deprecated
        public static ServletAppender createAppender​(Layout<? extends java.io.Serializable> layout,
                                                     Filter filter,
                                                     java.lang.String name,
                                                     boolean ignoreExceptions)
        Deprecated.
        Creates a Servlet Appender.
        Parameters:
        layout - The layout to use (required). Must extend AbstractStringLayout.
        filter - The Filter or null.
        name - The name of the Appender (required).
        ignoreExceptions - If true (default) exceptions encountered when appending events are logged; otherwise they are propagated to the caller.
        Returns:
        The ServletAppender.