MythTV
master
|
#include <QMap>
#include <QString>
#include <QMutex>
#include <cstdint>
Go to the source code of this file.
Classes | |
struct | LoglevelDef |
Macros | |
#define | VERBOSE_PREAMBLE enum VerboseMask { |
This file gets included in two different ways: 1) from mythlogging.h from nearly every file. More... | |
#define | VERBOSE_POSTAMBLE |
#define | VERBOSE_MAP(name, mask, additive, help) name = (mask), |
#define | LOGLEVEL_PREAMBLE enum LogLevel_t : std::int8_t { |
#define | LOGLEVEL_POSTAMBLE }; |
#define | LOGLEVEL_MAP(name, value, shortname) name = (value), |
Typedefs | |
using | VerboseMap = QMap< QString, VerboseDef * > |
using | LoglevelMap = QMap< int, LoglevelDef * > |
using | ComponentLogLevelMap = QMap< uint64_t, LogLevel_t > |
Functions | |
VERBOSE_PREAMBLE | VERBOSE_MAP (VB_ALL, ~0ULL, false, "ALL available debug output") VERBOSE_MAP(VB_MOST |
VERBOSE_PREAMBLE Most | debug (nodatabase, notimestamp, noextra)") VERBOSE_MAP(VB_GENERAL |
VERBOSE_PREAMBLE Most General info | VERBOSE_MAP (VB_RECORD, 0x00000004, true, "Recording related messages") VERBOSE_MAP(VB_PLAYBACK |
VERBOSE_PREAMBLE Most General info Playback related messages | VERBOSE_MAP (VB_CHANNEL, 0x00000010, true, "Channel related messages") VERBOSE_MAP(VB_OSD |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages | VERBOSE_MAP (VB_FILE, 0x00000040, true, "File and AutoExpire related messages") VERBOSE_MAP(VB_SCHEDULE |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages | VERBOSE_MAP (VB_NETWORK, 0x00000100, true, "Network protocol related messages") VERBOSE_MAP(VB_COMMFLAG |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages | VERBOSE_MAP (VB_AUDIO, 0x00000400, true, "Audio related messages") VERBOSE_MAP(VB_LIBAV |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging | VERBOSE_MAP (VB_JOBQUEUE, 0x00001000, true, "JobQueue related messages") VERBOSE_MAP(VB_SIPARSER |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages | VERBOSE_MAP (VB_EIT, 0x00004000, true, "EIT related messages") VERBOSE_MAP(VB_VBI |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages | VERBOSE_MAP (VB_DATABASE, 0x00010000, true, "Display all SQL commands executed") VERBOSE_MAP(VB_DSMCC |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages | VERBOSE_MAP (VB_MHEG, 0x00040000, true, "MHEG debugging messages") VERBOSE_MAP(VB_UPNP |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages | VERBOSE_MAP (VB_SOCKET, 0x00100000, true, "socket debugging messages") VERBOSE_MAP(VB_XMLTV |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages | VERBOSE_MAP (VB_DVBCAM, 0x00400000, true, "DVB CAM debugging messages") VERBOSE_MAP(VB_MEDIA |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages | VERBOSE_MAP (VB_IDLE, 0x01000000, true, "System idle messages") VERBOSE_MAP(VB_CHANSCAN |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages | VERBOSE_MAP (VB_GUI, 0x04000000, true, "GUI related messages") VERBOSE_MAP(VB_SYSTEM |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages | VERBOSE_MAP (VB_TIMESTAMP, 0x80000000, true, "Conditional data driven messages") VERBOSE_MAP(VB_PROCESS |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages | VERBOSE_MAP (VB_FRAME, 0x200000000ULL, true, "MPEG2Fix frame messages") VERBOSE_MAP(VB_RPLXQUEUE |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages | VERBOSE_MAP (VB_DECODE, 0x800000000ULL, true, "MPEG2Fix Decode messages") VERBOSE_MAP(VB_FLUSH |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages | VERBOSE_MAP (VB_STDIO, 0x2000000000ULL, true, "") VERBOSE_MAP(VB_GPU |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages GPU OpenGL driver messages | VERBOSE_MAP (VB_GPUAUDIO, 0x8000000000ULL, true, "GPU Audio Processing messages") VERBOSE_MAP(VB_GPUVIDEO |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages GPU OpenGL driver messages GPU video rendering messages | VERBOSE_MAP (VB_REFCOUNT, 0x20000000000ULL, true, "Reference Count messages") VERBOSE_MAP(VB_HTTP |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages GPU OpenGL driver messages GPU video rendering messages HTTP Server messages | VERBOSE_MAP (VB_NONE, 0x00000000, false, "NO debug output") VERBOSE_POSTAMBLE LOGLEVEL_PREAMBLE LOGLEVEL_POSTAMBLE struct VerboseDef |
Variables | |
VERBOSE_PREAMBLE | false |
VERBOSE_PREAMBLE Most | true |
VerboseMap | verboseMap |
QMutex | verboseMapMutex |
LoglevelMap | loglevelMap |
QMutex | loglevelMapMutex |
#define VERBOSE_PREAMBLE enum VerboseMask { |
This file gets included in two different ways: 1) from mythlogging.h from nearly every file.
This will define the VerboseMask enum 2) specifically (and a second include with MYTH_IMPLEMENT_VERBOSE defined) from mythlogging.cpp. This is done in verboseInit (in the middle of the function) as it will expand out to a series of calls to verboseAdd() to fill the verboseMap.
The 4 fields are: enum name (expected to start with VB_) enum value (will be used as a 64-bit unsigned int) additive flag (explicit = false, additive = true) help text for "-v help"
To create a new VB_* flag, this is the only piece of code you need to modify, then you can start using the new flag and it will automatically be processed by the verboseArgParse() function and help info printed when "-v help" is used.
Definition at line 60 of file verbosedefs.h.
#define VERBOSE_POSTAMBLE |
Definition at line 62 of file verbosedefs.h.
#define VERBOSE_MAP | ( | name, | |
mask, | |||
additive, | |||
help | |||
) | name = (mask), |
Definition at line 65 of file verbosedefs.h.
#define LOGLEVEL_PREAMBLE enum LogLevel_t : std::int8_t { |
Definition at line 75 of file verbosedefs.h.
#define LOGLEVEL_POSTAMBLE }; |
Definition at line 77 of file verbosedefs.h.
#define LOGLEVEL_MAP | ( | name, | |
value, | |||
shortname | |||
) | name = (value), |
Definition at line 79 of file verbosedefs.h.
using VerboseMap = QMap<QString, VerboseDef *> |
Definition at line 214 of file verbosedefs.h.
using LoglevelMap = QMap<int, LoglevelDef *> |
Definition at line 221 of file verbosedefs.h.
using ComponentLogLevelMap = QMap<uint64_t, LogLevel_t> |
Definition at line 222 of file verbosedefs.h.
VERBOSE_PREAMBLE VERBOSE_MAP | ( | VB_ALL | , |
~ | 0ULL, | ||
false | , | ||
"ALL available debug output" | |||
) |
VERBOSE_PREAMBLE Most debug | ( | nodatabase | , |
notimestamp | , | ||
noextra | |||
) |
VERBOSE_PREAMBLE Most General info VERBOSE_MAP | ( | VB_RECORD | , |
0x00000004 | , | ||
true | , | ||
"Recording related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages VERBOSE_MAP | ( | VB_CHANNEL | , |
0x00000010 | , | ||
true | , | ||
"Channel related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages VERBOSE_MAP | ( | VB_FILE | , |
0x00000040 | , | ||
true | , | ||
"File and AutoExpire related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages VERBOSE_MAP | ( | VB_NETWORK | , |
0x00000100 | , | ||
true | , | ||
"Network protocol related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages VERBOSE_MAP | ( | VB_AUDIO | , |
0x00000400 | , | ||
true | , | ||
"Audio related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging VERBOSE_MAP | ( | VB_JOBQUEUE | , |
0x00001000 | , | ||
true | , | ||
"JobQueue related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VERBOSE_MAP | ( | VB_EIT | , |
0x00004000 | , | ||
true | , | ||
"EIT related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages VERBOSE_MAP | ( | VB_DATABASE | , |
0x00010000 | , | ||
true | , | ||
"Display all SQL commands executed" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages VERBOSE_MAP | ( | VB_MHEG | , |
0x00040000 | , | ||
true | , | ||
"MHEG debugging messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages VERBOSE_MAP | ( | VB_SOCKET | , |
0x00100000 | , | ||
true | , | ||
"socket debugging messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages VERBOSE_MAP | ( | VB_DVBCAM | , |
0x00400000 | , | ||
true | , | ||
"DVB CAM debugging messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages VERBOSE_MAP | ( | VB_IDLE | , |
0x01000000 | , | ||
true | , | ||
"System idle messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages VERBOSE_MAP | ( | VB_GUI | , |
0x04000000 | , | ||
true | , | ||
"GUI related messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages VERBOSE_MAP | ( | VB_TIMESTAMP | , |
0x80000000 | , | ||
true | , | ||
"Conditional data driven messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages VERBOSE_MAP | ( | VB_FRAME | , |
0x200000000ULL | , | ||
true | , | ||
"MPEG2Fix frame messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages VERBOSE_MAP | ( | VB_DECODE | , |
0x800000000ULL | , | ||
true | , | ||
"MPEG2Fix Decode messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages VERBOSE_MAP | ( | VB_STDIO | , |
0x2000000000ULL | , | ||
true | , | ||
"" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages GPU OpenGL driver messages VERBOSE_MAP | ( | VB_GPUAUDIO | , |
0x8000000000ULL | , | ||
true | , | ||
"GPU Audio Processing messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages GPU OpenGL driver messages GPU video rendering messages VERBOSE_MAP | ( | VB_REFCOUNT | , |
0x20000000000ULL | , | ||
true | , | ||
"Reference Count messages" | |||
) |
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages GPU OpenGL driver messages GPU video rendering messages HTTP Server messages VERBOSE_MAP | ( | VB_NONE | , |
0x00000000 | , | ||
false | , | ||
"NO debug output" | |||
) |
Definition at line 187 of file verbosedefs.h.
VERBOSE_PREAMBLE false |
Definition at line 89 of file verbosedefs.h.
Referenced by MainServer::DoHandleDeleteRecording(), TV::eventFilter(), VideoStreamDescriptor::FrameRateExtensionFlag(), CardUtil::HasTuner(), and TV::PictureAttributeHandleAction().
VERBOSE_PREAMBLE Most General info Playback related messages On Screen Display related messages Scheduling related messages Commercial detection related messages Enables libav debugging Siparser related messages VBI related messages DSMCC carousel related messages UPnP debugging messages xmltv output and related messages Media Manager debugging messages Channel Scanning messages External executable related messages MPEG2Fix processing messages MPEG2Fix Replex Queue messages GPU OpenGL driver messages GPU video rendering messages true |
Definition at line 95 of file verbosedefs.h.
Referenced by MythVideoTextureOpenGL::CreateVideoFrameBuffer(), and DVBChannel::Open().
VerboseMap verboseMap |
Definition at line 89 of file logging.cpp.
Referenced by verboseAdd(), verboseArgParse(), verboseHelp(), and verboseInit().
QMutex verboseMapMutex |
Definition at line 90 of file logging.cpp.
Referenced by verboseArgParse(), and verboseInit().
LoglevelMap loglevelMap |
Definition at line 92 of file logging.cpp.
Referenced by LoggingItem::getLevelChar(), loglevelAdd(), logLevelGet(), logLevelGetName(), and verboseInit().
QMutex loglevelMapMutex |
Definition at line 93 of file logging.cpp.
Referenced by LoggingItem::getLevelChar(), logLevelGet(), logLevelGetName(), and verboseInit().