|
vdr-plugin-softhddevice-drm-gles 1.7.3-98a2ef7
|
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) |
| int | GetLogLevel (void) |
| void | SetChannelSwitchStartTime (std::chrono::steady_clock::time_point time) |
| void | SetChannelSwitchDataReceivedTime (std::chrono::steady_clock::time_point time) |
| std::chrono::steady_clock::time_point | GetChannelSwitchStartTime (void) |
| std::chrono::steady_clock::time_point | GetChannelSwitchDataReceivedTime (void) |
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::chrono::steady_clock::time_point | m_channelSwitchStartTime |
| timestamp, when VDR triggered a channel switch | |
| std::chrono::steady_clock::time_point | m_dataReceivedTime |
| timestamp, when the first audio or video data after a channel switch arrives in Play*() | |
| 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 |
|
inline |
Definition at line 104 of file logger.h.
References m_dataReceivedTime.
|
inline |
Definition at line 103 of file logger.h.
References m_channelSwitchStartTime.
|
static |
Get an instance to the global logger.
Definition at line 43 of file logger.cpp.
References cSoftHdLogger().
Referenced by LogFFmpegCallback(), and cSoftHdConfig::SetupParse().
Definition at line 99 of file logger.h.
References m_logLevel.
Log to syslog LOG_DEBUG.
Definition at line 130 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 149 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 73 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
Log to syslog LOG_ERR and abort.
Definition at line 52 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
Log to syslog LOG_DEBUG and add prefix [FFMpeg] to output.
Definition at line 209 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 231 of file logger.cpp.
References GetLogger().
Referenced by cVideoDecoder::cVideoDecoder().
Log to syslog LOG_INFO.
Definition at line 111 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
Log to syslog LOG_WARNING.
Definition at line 92 of file logger.cpp.
References MAX_LOGMESSAGE_SIZE, and SysLogLevel.
|
privatedelete |
|
inline |
Definition at line 102 of file logger.h.
References m_dataReceivedTime.
|
inline |
Definition at line 101 of file logger.h.
References m_channelSwitchStartTime.
Definition at line 98 of file logger.h.
References m_logLevel.
|
private |
timestamp, when VDR triggered a channel switch
Definition at line 113 of file logger.h.
Referenced by GetChannelSwitchStartTime(), and SetChannelSwitchStartTime().
|
private |
timestamp, when the first audio or video data after a channel switch arrives in Play*()
Definition at line 114 of file logger.h.
Referenced by GetChannelSwitchDataReceivedTime(), and SetChannelSwitchDataReceivedTime().
|
private |
loglevel mask (see enum LogFlags)
Definition at line 116 of file logger.h.
Referenced by GetLogLevel(), LogDebug(), LogDebug2(), LogFFmpeg(), and SetLogLevel().
max size of the log message
Definition at line 111 of file logger.h.
Referenced by LogDebug(), LogDebug2(), LogError(), LogFatal(), LogFFmpeg(), LogInfo(), and LogWarning().