UTILLib 2.0
Common C++ library with utilities.
Loading...
Searching...
No Matches
util::syslog Namespace Reference

The syslog namespace is used for the syslog interface. More...

Classes

class  ISyslogServer
 Define a syslog server interface. More...
class  StructuredData
 Defines a simple interface against structured data item. More...
class  SyslogMessage
 Simple wrapper around the parsing and generating os syslog messages. More...

Enumerations

enum class  SyslogServerType : uint8_t {
  UdpServer = 0 , TlsServer = 1 , TcpServer = 2 , TcpPublisher = 3 ,
  TcpSubscriber = 4
}
 Defines the type of syslog server. More...
enum class  SyslogSeverity : uint8_t {
  Emergency = 0 , Alert = 1 , Critical = 2 , Error = 3 ,
  Warning = 4 , Notice = 5 , Informational = 6 , Debug = 7
}
 Syslog severity codes. More...
enum class  SyslogFacility : uint8_t {
  Kernel = 0 , UserLevel = 1 , Mail = 2 , SystemDaemon = 3 ,
  Security = 4 , Internal = 5 , Printer = 6 , Network = 7 ,
  UUCP = 8 , Clock = 9 , Authorization = 10 , FTP = 11 ,
  NTP = 12 , LogAudit = 13 , LogAlert = 14 , ClockDaemon = 15 ,
  Local0 = 16 , Local1 = 17 , Local2 = 18 , Local3 = 19 ,
  Local4 = 20 , Local5 = 21 , Local6 = 22 , Local7 = 23
}
 Syslog facility codes.

Detailed Description

The syslog namespace is used for syslog message interfaces.

Enumeration Type Documentation

◆ SyslogServerType

enum class util::syslog::SyslogServerType : uint8_t
strong

Enumerate that defines the protocol the syslog server uses for receiving messages.

Enumerator
UdpServer 

Uses UDP protocol (RFC5426).

TlsServer 

Uses TLS on top of TCP (RFC5425).

TcpServer 

Uses plain TCP protocol (RFC6587).

TcpPublisher 

Server that sends syslog messages.

TcpSubscriber 

Client that subscribe on syslog messages.

◆ SyslogSeverity

enum class util::syslog::SyslogSeverity : uint8_t
strong
Enumerator
Emergency 

System is unusable.

Alert 

Action must be taken immediately.

Critical 

Critical condition.

Error 

Error condition.

Warning 

Warning condition.

Notice 

Normal but significant condition.

Informational 

Informational message.

Debug 

Debug message.