|
vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
|
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< cSoftHdLogger > | GetLogger () |
| 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 | |
| cSoftHdLogger & | operator= (const cSoftHdLogger &)=delete |
Private Attributes | |
| std::atomic< int > | m_logLevel = 0 |
| loglevel mask (see enum LogFlags) | |
Static Private Attributes | |
| static constexpr int | MAX_LOGMESSAGE_SIZE = 512 |
| max size of the log message | |
Logger.
Plugin specific logging implementation which does not depend on VDR loglevels
|
privatedefault |
Referenced by GetLogger().
|
privatedelete |
|
static |
Get an instance to the global logger.
Definition at line 43 of file logger.cpp.
References cSoftHdLogger().
Referenced by LogFFmpegCallback(), cSoftHdConfig::SetupParse(), and cMenuSetupSoft::Store().
Log to syslog LOG_DEBUG.
Definition at line 140 of file logger.cpp.
References m_logLevel, and MAX_LOGMESSAGE_SIZE.
Log to syslog LOG_DEBUG and add logging category to output.
Definition at line 159 of file logger.cpp.
References L_AV_SYNC, L_CODEC, L_DEBUG, L_DRM, L_GRAB, L_MEDIA, L_OPENGL, L_OPENGL_TIME, L_OPENGL_TIME_ALL, L_OSD, L_PACKET, L_SOUND, L_STILL, L_TRICK, m_logLevel, and MAX_LOGMESSAGE_SIZE.
Log to syslog LOG_ERR.
Definition at line 83 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
Log to syslog LOG_ERR and abort.
Definition at line 62 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
Log to syslog LOG_DEBUG and add prefix [FFMpeg] to output.
Definition at line 219 of file logger.cpp.
References AV_LOGLEVEL, L_FFMPEG, m_logLevel, and MAX_LOGMESSAGE_SIZE.
|
static |
Callback for ffmpeg logs.
Log to LOG_DEBUG and add prefix to output
Definition at line 241 of file logger.cpp.
References GetLogger().
Referenced by cVideoDecoder::cVideoDecoder().
Log to syslog LOG_INFO.
Definition at line 121 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
Log to syslog LOG_WARNING.
Definition at line 102 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
|
privatedelete |
Set the loglevel.
| level | new loglevel |
Definition at line 54 of file logger.cpp.
References m_logLevel.
|
private |
loglevel mask (see enum LogFlags)
Definition at line 102 of file logger.h.
Referenced by LogDebug(), LogDebug2(), LogFFmpeg(), and SetLogLevel().
max size of the log message
Definition at line 100 of file logger.h.
Referenced by LogDebug(), LogDebug2(), LogError(), LogFatal(), LogFFmpeg(), LogInfo(), and LogWarning().