MythTV  master
Classes | Macros | Typedefs | Functions | Variables
verbosedefs.h File Reference
#include <QMap>
#include <QString>
#include <QMutex>
#include <cstdint>
Include dependency graph for verbosedefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LoglevelDef
 

Macros

#define VERBOSEDEFS_H_
 
#define VERBOSE_PREAMBLE
 
#define VERBOSE_POSTAMBLE
 
#define VERBOSE_MAP(name, mask, additive, help)   verboseAdd(mask,QString(#name),additive,QString(help));
 
#define LOGLEVEL_PREAMBLE
 
#define LOGLEVEL_POSTAMBLE
 
#define LOGLEVEL_MAP(name, value, shortname)   loglevelAdd(value,QString(#name),shortname);
 
#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   typedef enum {
 
#define LOGLEVEL_POSTAMBLE   } LogLevel_t;
 
#define LOGLEVEL_MAP(name, value, shortname)   name = (value),
 

Typedefs

typedef QMap< QString, VerboseDef * > VerboseMap
 
typedef QMap< int, LoglevelDef * > LoglevelMap
 
typedef QMap< uint64_t, LogLevel_t > ComponentLogLevelMap
 

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 typedef struct
 

Variables

VERBOSE_PREAMBLE false
 
VERBOSE_PREAMBLE Most true
 
 VerboseDef
 
VerboseMap verboseMap
 
QMutex verboseMapMutex
 
LoglevelMap loglevelMap
 
QMutex loglevelMapMutex
 

Macro Definition Documentation

◆ VERBOSEDEFS_H_

#define VERBOSEDEFS_H_

◆ VERBOSE_PREAMBLE [1/2]

#define VERBOSE_PREAMBLE

◆ VERBOSE_POSTAMBLE [1/2]

#define VERBOSE_POSTAMBLE

◆ VERBOSE_MAP [1/2]

#define VERBOSE_MAP (   name,
  mask,
  additive,
  help 
)    verboseAdd(mask,QString(#name),additive,QString(help));

◆ LOGLEVEL_PREAMBLE [1/2]

#define LOGLEVEL_PREAMBLE

◆ LOGLEVEL_POSTAMBLE [1/2]

#define LOGLEVEL_POSTAMBLE

◆ LOGLEVEL_MAP [1/2]

#define LOGLEVEL_MAP (   name,
  value,
  shortname 
)    loglevelAdd(value,QString(#name),shortname);

◆ VERBOSE_PREAMBLE [2/2]

#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 _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 58 of file verbosedefs.h.

◆ VERBOSE_POSTAMBLE [2/2]

#define VERBOSE_POSTAMBLE
Value:
VB_LAST_ITEM \
};

Definition at line 60 of file verbosedefs.h.

◆ VERBOSE_MAP [2/2]

#define VERBOSE_MAP (   name,
  mask,
  additive,
  help 
)    name = mask,

Definition at line 63 of file verbosedefs.h.

◆ LOGLEVEL_PREAMBLE [2/2]

#define LOGLEVEL_PREAMBLE   typedef enum {

Definition at line 73 of file verbosedefs.h.

◆ LOGLEVEL_POSTAMBLE [2/2]

#define LOGLEVEL_POSTAMBLE   } LogLevel_t;

Definition at line 75 of file verbosedefs.h.

◆ LOGLEVEL_MAP [2/2]

#define LOGLEVEL_MAP (   name,
  value,
  shortname 
)    name = (value),

Definition at line 77 of file verbosedefs.h.

Typedef Documentation

◆ VerboseMap

typedef QMap<QString, VerboseDef *> VerboseMap

Definition at line 209 of file verbosedefs.h.

◆ LoglevelMap

typedef QMap<int, LoglevelDef *> LoglevelMap

Definition at line 216 of file verbosedefs.h.

◆ ComponentLogLevelMap

typedef QMap<uint64_t, LogLevel_t> ComponentLogLevelMap

Definition at line 217 of file verbosedefs.h.

Function Documentation

◆ VERBOSE_MAP() [1/21]

VERBOSE_PREAMBLE VERBOSE_MAP ( VB_ALL  ,
0ULL,
false  ,
"ALL available debug output  
)

◆ debug()

VERBOSE_PREAMBLE Most debug ( nodatabase  ,
notimestamp  ,
noextra   
)

◆ VERBOSE_MAP() [2/21]

VERBOSE_PREAMBLE Most General info VERBOSE_MAP ( VB_RECORD  ,
0x00000004  ,
true  ,
"Recording related messages"   
)

◆ VERBOSE_MAP() [3/21]

VERBOSE_PREAMBLE Most General info Playback related messages VERBOSE_MAP ( VB_CHANNEL  ,
0x00000010  ,
true  ,
"Channel related messages"   
)

◆ VERBOSE_MAP() [4/21]

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() [5/21]

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() [6/21]

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() [7/21]

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() [8/21]

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() [9/21]

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() [10/21]

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() [11/21]

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() [12/21]

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() [13/21]

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() [14/21]

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() [15/21]

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() [16/21]

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() [17/21]

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() [18/21]

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() [19/21]

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() [20/21]

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() [21/21]

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 183 of file verbosedefs.h.

Variable Documentation

◆ false

◆ 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 GPU video rendering messages true

Definition at line 91 of file verbosedefs.h.

Referenced by SOAPClient::SendSOAPRequest().

◆ VerboseDef

VerboseDef

Definition at line 208 of file verbosedefs.h.

Referenced by verboseAdd(), verboseArgParse(), and verboseHelp().

◆ verboseMap

VerboseMap verboseMap

Definition at line 98 of file logging.cpp.

Referenced by verboseAdd(), verboseArgParse(), verboseHelp(), and verboseInit().

◆ verboseMapMutex

QMutex verboseMapMutex

Definition at line 99 of file logging.cpp.

Referenced by verboseArgParse(), and verboseInit().

◆ loglevelMap

LoglevelMap loglevelMap

◆ loglevelMapMutex

QMutex loglevelMapMutex