Class SocketAppender

    • Method Detail

      • createAppender

        @Deprecated
        @PluginFactory
        public static SocketAppender createAppender​(String host,
                                                    int port,
                                                    Protocol protocol,
                                                    SslConfiguration sslConfig,
                                                    int connectTimeoutMillis,
                                                    int reconnectDelayMillis,
                                                    boolean immediateFail,
                                                    String name,
                                                    boolean immediateFlush,
                                                    boolean ignoreExceptions,
                                                    Layout<? extends Serializable> layout,
                                                    Filter filter,
                                                    boolean advertise,
                                                    Configuration configuration)
        Deprecated.
        Deprecated in 2.7; use newBuilder()
        Creates a socket appender.
        Parameters:
        host - The name of the host to connect to.
        port - The port to connect to on the target host.
        protocol - The Protocol to use.
        sslConfig - The SSL configuration file for TCP/SSL, ignored for UPD.
        connectTimeoutMillis - the connect timeout in milliseconds.
        reconnectDelayMillis - The interval in which failed writes should be retried.
        immediateFail - True if the write should fail if no socket is immediately available.
        name - The name of the Appender.
        immediateFlush - "true" if data should be flushed on each write.
        ignoreExceptions - If "true" (default) exceptions encountered when appending events are logged; otherwise they are propagated to the caller.
        layout - The layout to use. Required, there is no default.
        filter - The Filter or null.
        advertise - "true" if the appender configuration should be advertised, "false" otherwise.
        configuration - The Configuration
        Returns:
        A SocketAppender.
      • createAppender

        @Deprecated
        public static SocketAppender createAppender​(String host,
                                                    String portNum,
                                                    String protocolIn,
                                                    SslConfiguration sslConfig,
                                                    int connectTimeoutMillis,
                                                    String delayMillis,
                                                    String immediateFail,
                                                    String name,
                                                    String immediateFlush,
                                                    String ignore,
                                                    Layout<? extends Serializable> layout,
                                                    Filter filter,
                                                    String advertise,
                                                    Configuration config)
        Deprecated.
        Deprecated in 2.5; use newBuilder()
        Creates a socket appender.
        Parameters:
        host - The name of the host to connect to.
        portNum - The port to connect to on the target host.
        protocolIn - The Protocol to use.
        sslConfig - The SSL configuration file for TCP/SSL, ignored for UPD.
        connectTimeoutMillis - the connect timeout in milliseconds.
        delayMillis - The interval in which failed writes should be retried.
        immediateFail - True if the write should fail if no socket is immediately available.
        name - The name of the Appender.
        immediateFlush - "true" if data should be flushed on each write.
        ignore - If "true" (default) exceptions encountered when appending events are logged; otherwise they are propagated to the caller.
        layout - The layout to use. Required, there is no default.
        filter - The Filter or null.
        advertise - "true" if the appender configuration should be advertised, "false" otherwise.
        config - The Configuration
        Returns:
        A SocketAppender.