vdr-plugin-softhddevice-drm-gles 1.6.2
cSoftHdLogger Class Reference

Logger. More...

#include <logger.h>

Public Member Functions

void LogFatal (const char *format,...)
 Log to syslog LOG_ERR and abort.
 
void LogError (const char *format,...)
 Log to syslog LOG_ERR.
 
void LogWarning (const char *format,...)
 Log to syslog LOG_WARNING.
 
void LogInfo (const char *format,...)
 Log to syslog LOG_INFO.
 
void LogDebug (const char *format,...)
 Log to syslog LOG_DEBUG.
 
void LogDebug2 (const int cat, const char *format,...)
 Log to syslog LOG_DEBUG and add logging category to output.
 
void LogFFmpeg (const char *, va_list)
 Log to syslog LOG_DEBUG and add prefix [FFMpeg] to output.
 
void SetLogLevel (int level)
 Set the loglevel.
 

Static Public Member Functions

static std::shared_ptr< cSoftHdLoggerGetLogger ()
 Get an instance to the global logger.
 
static void LogFFmpegCallback (void *, int, const char *, va_list)
 Callback for ffmpeg logs.
 

Private Member Functions

 cSoftHdLogger (void)=default
 
 cSoftHdLogger (const cSoftHdLogger &)=delete
 
cSoftHdLoggeroperator= (const cSoftHdLogger &)=delete
 

Private Attributes

std::atomic< intm_logLevel = 0
 loglevel mask (see enum LogFlags)
 

Static Private Attributes

static constexpr int MAX_LOGMESSAGE_SIZE = 512
 max size of the log message
 

Detailed Description

Logger.

Plugin specific logging implementation which does not depend on VDR loglevels

Definition at line 73 of file logger.h.

Constructor & Destructor Documentation

◆ cSoftHdLogger() [1/2]

cSoftHdLogger::cSoftHdLogger ( void  )
privatedefault

Referenced by GetLogger().

◆ cSoftHdLogger() [2/2]

cSoftHdLogger::cSoftHdLogger ( const cSoftHdLogger )
privatedelete

Member Function Documentation

◆ operator=()

cSoftHdLogger & cSoftHdLogger::operator= ( const cSoftHdLogger )
privatedelete

Member Data Documentation

◆ m_logLevel

std::atomic<int> cSoftHdLogger::m_logLevel = 0
private

loglevel mask (see enum LogFlags)

Definition at line 93 of file logger.h.

Referenced by LogDebug(), LogDebug2(), LogFFmpeg(), and SetLogLevel().

◆ MAX_LOGMESSAGE_SIZE

constexpr int cSoftHdLogger::MAX_LOGMESSAGE_SIZE = 512
staticconstexprprivate

max size of the log message

Definition at line 91 of file logger.h.

Referenced by LogDebug(), LogDebug2(), LogError(), LogFatal(), LogFFmpeg(), LogInfo(), and LogWarning().


The documentation for this class was generated from the following files: