sptk2 logo
SPTK Home Page
Classes | Typedefs | Enumerations | Variables
Log Classes

Classes

class  sptk::FileLogEngine
 
class  sptk::LogEngine
 
class  sptk::Logger
 A log that sends all the log messages into another log. More...
 
class  sptk::SysLogEngine
 

Typedefs

using sptk::SLogger = std::shared_ptr< Logger >
 

Enumerations

enum class  sptk::LogPriority {
  LogPriority::DEBUG = LOG_DEBUG , LogPriority::INFO = LOG_INFO , LogPriority::NOTICE = LOG_NOTICE , LogPriority::WARNING = LOG_WARNING ,
  LogPriority::ERR = LOG_ERR , LogPriority::CRITICAL = LOG_CRIT , LogPriority::ALERT = LOG_ALERT , LogPriority::PANIC = LOG_EMERG
}
 Log message priority. More...
 

Variables

constexpr int sptk::LO_STDOUT = 1
 Duplicate messages to stdout.
 
constexpr int sptk::LO_DATE = 2
 Print date for every log message.
 
constexpr int sptk::LO_TIME = 4
 Print time for every log message.
 
constexpr int sptk::LO_PRIORITY = 8
 Print message priority.
 
constexpr int sptk::LO_ENABLE = 16
 Enable logging (doesn't affect stdout if CLO_STDOUT is on)
 

Detailed Description

Enumeration Type Documentation

◆ LogPriority

enum class sptk::LogPriority
strong

Log message priority.

Enumerator
DEBUG 

Debug message priority

INFO 

Information message priority

NOTICE 

Notice message priority

WARNING 

Warning message priority

ERR 

Error message priority

CRITICAL 

Critical message priority

ALERT 

Alert message priority

PANIC 

Panic message priority


Fri Oct 14 2022 09:58:32: SPTK 5.4.1