tcp_appender: Send logs over TCP

View source: R/appenders.R

tcp_appenderR Documentation

Send logs over TCP

Description

Append messages to arbitrary TCP destinations.

Usage

tcp_appender(
  host,
  port,
  layout = default_log_layout(),
  timeout = getOption("timeout")
)

Arguments

host

Hostname for the socket connection.

port

Port number for the socket connection.

layout

A layout function taking a level parameter and additional arguments corresponding to the message.

timeout

Timeout for the connection.

See Also

appenders for more information on Appenders, and base::socketConnection() for the underlying connection object used by tcp_appender().


johnmyleswhite/log4r documentation built on Oct. 22, 2024, 8 p.m.