log4shib::...ogAppender(3)
πΈ NAME πΈ
You're reading the log4shib::...ogAppender(3) page from the log4shib Library Functions Manual, bestie. <pink>RemoteSyslogAppender</pink> sends LoggingEvents to a remote syslog system. That's the whole main-character job. π
β¨ SYNOPSIS β¨
#include <RemoteSyslogAppender.hh>
Inherits log4shib::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 aRemoteSyslogAppenderwith the given name and name and facility for syslog. Yes, βname and nameβ is literally the pageβs energy πvirtual ~RemoteSyslogAppender ()β Destructor, doing destructor things π«Άvirtual bool reopen ()β Closes and reopens the socket.virtual void close ()β Closes the socket.
π Public Member Functions inherited from log4shib::LayoutAppender
LayoutAppender (const std::string &name)β constructor vibes.virtual ~LayoutAppender ()β destructor vibes.virtual bool requiresLayout () constβ Check if the appender requires a layout.virtual void setLayout (Layout *layout=NULL)β Set theLayoutfor this appender.
π¦ Public Member Functions inherited from log4shib::AppenderSkeleton
virtual ~AppenderSkeleton ()β Destructor forAppenderSkeleton.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 aFilterfor this appender.virtual Filter * getFilter ()β Get theFilterfor this appender.
π Public Member Functions inherited from log4shib::Appender
virtual ~Appender ()β Destructor forAppender.const std::string & getName () constβ Get the name of this appender.
β Static Public Member Functions
static int toSyslogPriority (Priority::Value priority)β Translates a log4shib priority to a syslog priority.
π§ Static Public Member Functions inherited from log4shib::Appender
static Appender * getAppender (const std::string &name)β Get a pointer to an exitsingAppender. (Yes, βexitsingβ is in the original β not me, bestie π)static bool reopenAll ()β Callreopen()on all existingAppenders.static void closeAll ()β Callreopen()on all existingAppenders. (The page literally repeatsreopen()here forcloseAllβ thatβs the tea β)
π Protected Member Functions
virtual void open ()β Just creates the socket.virtual void _append (const LoggingEvent &event)β Sends aLoggingEventto the remote syslog.
π Protected Member Functions inherited from log4shib::LayoutAppender
Layout & _getLayout ()β Return the layout of the appender.
π Protected Member Functions inherited from log4shib::AppenderSkeleton
AppenderSkeleton (const std::string &name)β Constructor forAppenderSkeleton.
πΈ Protected Member Functions inherited from log4shib::Appender
Appender (const std::string &name)β Constructor forAppender.
π₯ Protected Attributes
const std::string _syslogNameconst std::string _relayerint _facilityint _portNumberint _socketin_addr_t _ipAddr
π Additional Inherited Members
Public Types inherited from log4shib::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 π
log4shib::RemoteSyslogAppender::RemoteSyslogAppender
log4shib::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 theopenlog(3)call.relayerβ The IP address or hostname of a standard syslog host.facilityβ The syslog facility to log to. Defaults toLOG_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.
log4shib::RemoteSyslogAppender::~RemoteSyslogAppender () [virtual]
Destructor. Thatβs it, thatβs the note π«Ά
π¦ Member Function Documentation π¦
void log4shib::RemoteSyslogAppender::_append (const LoggingEvent &event) [protected], [virtual]
Sends a LoggingEvent to the remote syslog.
Parameters:
eventβ theLoggingEventto log.
Implements log4shib::AppenderSkeleton.
void log4shib::RemoteSyslogAppender::close () [virtual]
Closes the socket.
Implements log4shib::AppenderSkeleton.
void log4shib::RemoteSyslogAppender::open () [protected], [virtual]
Just creates the socket.
bool log4shib::RemoteSyslogAppender::reopen () [virtual]
Closes and reopens the socket.
Reimplemented from log4shib::AppenderSkeleton.
int log4shib::RemoteSyslogAppender::toSyslogPriority (Priority::Value priority) [static]
Translates a log4shib priority to a syslog priority.
Parameters:
priorityβ The log4shib priority.
Returns: the syslog priority.
π Member Data Documentation π
Hereβs the protected data-member lineup, exactly as the page names it:
int log4shib::RemoteSyslogAppender::_facility [protected]in_addr_t log4shib::RemoteSyslogAppender::_ipAddr [protected]int log4shib::RemoteSyslogAppender::_portNumber [protected]const std::string log4shib::RemoteSyslogAppender::_relayer [protected]int log4shib::RemoteSyslogAppender::_socket [protected]const std::string log4shib::RemoteSyslogAppender::_syslogName [protected]
π Author π
Generated automatically by Doxygen for log4shib from the source code.
Cute little sign-off: the footerβs source/version is log4shib Version 2.0.1, and the footer date isβ¦ not in the footer, bestie β thatβs literally all it gives us. Periodt. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms