MythTV  master
Classes | Macros | Typedefs | Functions
loggingserver.h File Reference
#include <QMutexLocker>
#include <QSocketNotifier>
#include <QMutex>
#include <QQueue>
#include <QElapsedTimer>
#include <cstdint>
#include <ctime>
#include <unistd.h>
#include "mythconfig.h"
#include "mythbaseexp.h"
#include "verbosedefs.h"
#include "mthread.h"
Include dependency graph for loggingserver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  LoggerBase
 Base class for the various logging mechanisms. More...
class  FileLogger
 File-based logger - used for logfiles and console. More...
class  DatabaseLogger
 Database logger - logs to the MythTV database. More...
class  LogForwardThread
 The logging thread that forwards received messages to the consuming loggers via ZeroMQ. More...
class  DBLoggerThread
 Thread that manages the queueing of logging inserts for the database. More...


#define LOGLINE_MAX   (2048-120)
#define MAX_QUEUE_LEN   1000


using LogMessage = QList< QByteArray >
using LogMessageList = QList< LogMessage * >


MBASE_PUBLIC bool logForwardStart (void)
MBASE_PUBLIC void logForwardStop (void)
MBASE_PUBLIC void logForwardMessage (const QList< QByteArray > &msg)

Macro Definition Documentation


#define LOGLINE_MAX   (2048-120)

Definition at line 19 of file loggingserver.h.


#define MAX_QUEUE_LEN   1000

Definition at line 157 of file loggingserver.h.

Typedef Documentation

◆ LogMessage

using LogMessage = QList<QByteArray>

Definition at line 126 of file loggingserver.h.

◆ LogMessageList

using LogMessageList = QList<LogMessage *>

Definition at line 127 of file loggingserver.h.

Function Documentation

◆ logForwardStart()

MBASE_PUBLIC bool logForwardStart ( void  )

Definition at line 866 of file loggingserver.cpp.

Referenced by LoggerThread::LoggerThread().

◆ logForwardStop()

MBASE_PUBLIC void logForwardStop ( void  )

Definition at line 875 of file loggingserver.cpp.

Referenced by LoggerThread::~LoggerThread().

◆ logForwardMessage()

MBASE_PUBLIC void logForwardMessage ( const QList< QByteArray > &  msg)

Definition at line 891 of file loggingserver.cpp.

Referenced by LoggerThread::handleItem().