LOG4SHIB::SYSLOGAPPENDER(3)
πΈ NAME πΈ
okay so bestie, this is the log4shib::SyslogAppender(3) page from the Library Functions Manual β all about the log4shib::SyslogAppender class. The whole point, no cap: SyslogAppender sends LoggingEvents to the local syslog system. π
β¨ SYNOPSIS β¨
#include <SyslogAppender.hh>
Inherits log4shib::LayoutAppender.
π Public Member Functions π
SyslogAppender (const std::string &name, const std::string &syslogName, int facility=LOG_USER)β instantiate aSyslogAppenderwith the given name, syslog name, and facility for syslog. π«Άvirtual ~SyslogAppender ()β the destructor. That's the whole line, bestie.virtual bool reopen ()β Callscloselog(3)andopenlog(3).virtual void close ()β Callscloselog(3)to close the syslog file descriptor.
π«Ά Public Member Functions inherited from log4shib::LayoutAppender π«Ά
LayoutAppender (const std::string &name)β constructor inherited fromlog4shib::LayoutAppender.virtual ~LayoutAppender ()β destructor inherited fromlog4shib::LayoutAppender.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. The page really says "exitsing"; I'm just the messenger. πstatic bool reopenAll ()β Callreopen()on all existing Appenders.static void closeAll ()β Callreopen()on all existing Appenders. Yes,closeAllsaysreopen()here β not me editing it, fr fr.
π‘οΈ Protected Member Functions π‘οΈ
virtual void open ()β Callsopenlog(3).virtual void _append (const LoggingEvent &event)β Sends aLoggingEventto 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 _syslogNameint _facility
π¦ Additional Inherited Members π¦
πΈ Public Types inherited from log4shib::LayoutAppender πΈ
typedef BasicLayout DefaultLayoutType
π DETAILED DESCRIPTION π
SyslogAppender sends LoggingEvents to the local syslog system. That's the whole detailed description, short and iconic. β¨
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
log4shib::SyslogAppender::SyslogAppender (const std::string & name, const std::string & syslogName, int facility = LOG_USER)
Instantiate a SyslogAppender with given name and name and facility for syslog. Note that the C syslog API is process global, so instantion (their spelling, not mine) of a second SyslogAppender will 'overwrite' the syslog name of the first.
β οΈ big caveat: that process-global thing is real, bestie. A second SyslogAppender will 'overwrite' the first one's syslog name. No cap.
Parameters
nameβ The name of the AppendersyslogNameβ The ident parameter in theopenlog(3)call.facilityβ The syslog facility to log to. Defaults toLOG_USER.
virtual log4shib::SyslogAppender::~SyslogAppender () [virtual]
The destructor signature, exactly as listed. No extra prose in the source, so no invented lore from me. π«Ά
π MEMBER FUNCTION DOCUMENTATION π
virtual void log4shib::SyslogAppender::_append (const LoggingEvent & event) [protected], [virtual]
Sends a LoggingEvent to syslog.
Parameters
eventβ theLoggingEventto log.
Implements log4shib::AppenderSkeleton.
virtual void log4shib::SyslogAppender::close () [virtual]
Calls closelog(3) to close the syslog file descriptor.
Implements log4shib::AppenderSkeleton.
virtual void log4shib::SyslogAppender::open () [protected], [virtual]
Calls openlog(3).
virtual bool log4shib::SyslogAppender::reopen () [virtual]
Calls closelog(3) and openlog(3).
Reimplemented from log4shib::AppenderSkeleton.
int log4shib::SyslogAppender::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 π
int log4shib::SyslogAppender::_facility [protected]
No description on the page, just the member. Keep it cute and protected. π
const std::string log4shib::SyslogAppender::_syslogName [protected]
No description on the page, just the member. Same energy. π
π AUTHOR π
Generated automatically by Doxygen for log4shib from the source code. iconic behavior, honestly.
okay that's the whole page, bestie. π«Ά Source/version check: this is log4shib, Version 2.0.1, and the footer doesn't give a date, so I'm not inventing one. log4shib::SyslogAppender(3) signing off. ππ
π¦ 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