LOG4CPP::REMOTESYSLOGAPPENDER(3)

πŸ“¦
version 1.1.4 Β· 3 versions
, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

Hey bestie! πŸ’… Welcome to the log4cpp::R...logAppender(3) page from the Library Functions Manual β€” this is the log4cpp::RemoteSyslogAppender lore, and it literally sends LoggingEvents to a remote syslog system. Slay. ✨

✨ SYNOPSIS ✨

#include <RemoteSyslogAppender.hh>

Inherits log4cpp::LayoutAppender.

🌸 Public Member Functions 🌸

  • RemoteSyslogAppender (const std::string &name, const std::string &syslogName, const std::string &relayer, int facility=LOG_USER, int portNumber=514) β€” Instantiate a RemoteSyslogAppender with given name and name and facility for syslog. 🫢
  • virtual ~RemoteSyslogAppender () β€” the virtual destructor; the original gives no extra description here. πŸ’€
  • virtual bool reopen () β€” Closes and reopens the socket.
  • virtual void close () β€” Closes the socket.

🌈 Public Member Functions inherited from log4cpp::LayoutAppender 🌈

  • LayoutAppender (const std::string &name) β€” constructor; no extra description in the original. ✨
  • virtual ~LayoutAppender () β€” destructor; no extra description in the original.
  • virtual bool requiresLayout () const β€” Check if the appender requires a layout.
  • virtual void setLayout (Layout *layout=NULL) β€” Set the Layout for this appender.

🌟 Public Member Functions inherited from log4cpp::AppenderSkeleton 🌟

  • virtual ~AppenderSkeleton () β€” Destructor for AppenderSkeleton.
  • virtual void doAppend (const LoggingEvent &event) β€” Log in Appender specific way.
  • virtual void setThreshold (Priority::Value priority) β€” Set the threshold priority of this Appender.
  • virtual Priority::Value getThreshold () β€” Get the threshold priority of this Appender.
  • virtual void setFilter (Filter *filter) β€” Set a Filter for this appender.
  • virtual Filter * getFilter () β€” Get the Filter for this appender.

πŸ¦‹ Public Member Functions inherited from log4cpp::Appender πŸ¦‹

  • virtual ~Appender () β€” Destructor for Appender.
  • const std::string & getName () const β€” Get the name of this appender.

πŸ’« Static Public Member Functions πŸ’«

  • static int toSyslogPriority (Priority::Value priority) β€” Translates a log4cpp priority to a syslog priority.

⭐ Static Public Member Functions inherited from log4cpp::Appender ⭐

  • static Appender * getAppender (const std::string &name) β€” Get a pointer to an exitsing Appender. (yep, that exitsing typo is literally in the original β€” preserving it fr fr)
  • static bool reopenAll () β€” Call reopen() on all existing Appenders.
  • static void closeAll () β€” Call reopen() on all existing Appenders.

πŸŽ€ Protected Member Functions πŸŽ€

  • virtual void open () β€” Just creates the socket.
  • virtual void _append (const LoggingEvent &event) β€” Sends a LoggingEvent to the remote syslog.

🧚 Protected Member Functions inherited from log4cpp::LayoutAppender 🧚

  • Layout & _getLayout () β€” Return the layout of the appender.

πŸ“ Protected Member Functions inherited from log4cpp::AppenderSkeleton πŸ“

  • AppenderSkeleton (const std::string &name) β€” Constructor for AppenderSkeleton.

πŸ’œ Protected Member Functions inherited from log4cpp::Appender πŸ’œ

  • Appender (const std::string &name) β€” Constructor for Appender.

πŸ‘‘ Protected Attributes πŸ‘‘

  • const std::string _syslogName
  • const std::string _relayer
  • int _facility
  • int _portNumber
  • SOCKET _socket
  • in_addr_t _ipAddr

🌈 Additional Inherited Members 🌈

  • Public Types inherited from log4cpp::LayoutAppender: typedef BasicLayout DefaultLayoutType

πŸ’… Detailed Description πŸ’…

RemoteSyslogAppender sends LoggingEvents to a remote syslog system.

Also see: draft-ietf-syslog-syslog-12.txt πŸ‘€

πŸŽ€ Constructor & Destructor Documentation πŸŽ€

log4cpp::RemoteSyslogAppender::RemoteSyslogAppender (const std::string & name, const std::string & syslogName, const std::string & relayer, int facility = LOG_USER, int portNumber = 514)

Instantiate a RemoteSyslogAppender with given name and name and facility for syslog.

Parameters:

  • name β€” The name of the Appender
  • syslogName β€” The ident parameter in the openlog(3) call.
  • relayer β€” The IP address or hostname of a standard syslog host.
  • facility β€” The syslog facility to log to. Defaults to LOG_USER. Value '-1' implies to use the default.
  • portNumber β€” An alternative port number. Defaults to the standard syslog port number (514). Value '-1' implies to use the default.

log4cpp::RemoteSyslogAppender::~RemoteSyslogAppender () [virtual]

The virtual destructor. The original leaves it undecorated, so no extra description here bestie. 🫢

πŸ”₯ Member Function Documentation πŸ”₯

void log4cpp::RemoteSyslogAppender::_append (const LoggingEvent & event) [protected], [virtual]

Sends a LoggingEvent to the remote syslog.

Parameters:

  • event β€” the LoggingEvent to log.

Implements log4cpp::AppenderSkeleton.

void log4cpp::RemoteSyslogAppender::close () [virtual]

Closes the socket.

Implements log4cpp::AppenderSkeleton.

void log4cpp::RemoteSyslogAppender::open () [protected], [virtual]

Just creates the socket.

bool log4cpp::RemoteSyslogAppender::reopen () [virtual]

Closes and reopens the socket.

Reimplemented from log4cpp::AppenderSkeleton.

int log4cpp::RemoteSyslogAppender::toSyslogPriority (Priority::Value priority) [static]

Translates a log4cpp priority to a syslog priority.

Parameters:

  • priority β€” The log4cpp priority.

Returns: the syslog priority.

🌟 Member Data Documentation 🌟

  • int log4cpp::RemoteSyslogAppender::_facility [protected]
  • in_addr_t log4cpp::RemoteSyslogAppender::_ipAddr [protected]
  • int log4cpp::RemoteSyslogAppender::_portNumber [protected]
  • const std::string log4cpp::RemoteSyslogAppender::_relayer [protected]
  • SOCKET log4cpp::RemoteSyslogAppender::_socket [protected]
  • const std::string log4cpp::RemoteSyslogAppender::_syslogName [protected]

The original just lists these protected data members with no extra descriptions β€” periodt. πŸ’…

🫢 Author 🫢

Generated automatically by Doxygen for log4cpp from the source code.


okay bestie, that's the whole page πŸ’– The footer says source/version log4cpp, Version 1.1, and the page tag log4cpp::R...logAppender(3) β€” and there's literally no date printed on this one, so that's all the date lore we have πŸŽ€βœ¨

πŸ“¦ where this page comes from