MythTV  master
Classes | Typedefs | Functions | Variables
loggingserver.cpp File Reference
#include <QtGlobal>
#include <QAtomicInt>
#include <QMutex>
#include <QMutexLocker>
#include <QWaitCondition>
#include <QList>
#include <QQueue>
#include <QHash>
#include <QCoreApplication>
#include <QFileInfo>
#include <QStringList>
#include <QMap>
#include <QSocketNotifier>
#include <iostream>
#include "mythlogging.h"
#include "logging.h"
#include "loggingserver.h"
#include "mythdb.h"
#include "mythcorecontext.h"
#include "dbutil.h"
#include "exitcodes.h"
#include "compat.h"
#include <cstdlib>
#include <cstdarg>
#include <cstring>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <cstdio>
#include <unistd.h>
#include <csignal>
Include dependency graph for loggingserver.cpp:

Go to the source code of this file.

Classes

struct  LoggerListItem
 

Typedefs

using LoggerList = QList< LoggerBase * >
 

Functions

bool logForwardStart (void)
 
void logForwardStop (void)
 
void logForwardMessage (LoggingItem *item)
 

Variables

static QMutex loggerMapMutex
 
static QMap< QString, LoggerBase * > loggerMap
 
LogForwardThreadlogForwardThread = nullptr
 
static QMutex gLoggerListMutex
 
static LoggerListItemgLoggerList {nullptr}
 
static QMutex gLogItemListMutex
 
static LoggingItemList gLogItemList
 
static QWaitCondition gLogItemListNotEmpty
 

Typedef Documentation

◆ LoggerList

using LoggerList = QList<LoggerBase *>

Definition at line 62 of file loggingserver.cpp.

Function Documentation

◆ logForwardStart()

bool logForwardStart ( void  )

Definition at line 495 of file loggingserver.cpp.

Referenced by LoggerThread::LoggerThread().

◆ logForwardStop()

void logForwardStop ( void  )

Definition at line 504 of file loggingserver.cpp.

Referenced by LoggerThread::~LoggerThread().

◆ logForwardMessage()

void logForwardMessage ( LoggingItem item)

Definition at line 516 of file loggingserver.cpp.

Referenced by LoggerThread::handleItem().

Variable Documentation

◆ loggerMapMutex

QMutex loggerMapMutex
static

◆ loggerMap

QMap<QString, LoggerBase *> loggerMap
static

◆ logForwardThread

LogForwardThread* logForwardThread = nullptr

Definition at line 60 of file loggingserver.cpp.

Referenced by logForwardStart(), and logForwardStop().

◆ gLoggerListMutex

QMutex gLoggerListMutex
static

Definition at line 70 of file loggingserver.cpp.

Referenced by LogForwardThread::forwardMessage().

◆ gLoggerList

LoggerListItem* gLoggerList {nullptr}
static

Definition at line 71 of file loggingserver.cpp.

Referenced by LogForwardThread::forwardMessage().

◆ gLogItemListMutex

QMutex gLogItemListMutex
static

Definition at line 80 of file loggingserver.cpp.

Referenced by logForwardMessage(), and LogForwardThread::run().

◆ gLogItemList

LoggingItemList gLogItemList
static

Definition at line 81 of file loggingserver.cpp.

Referenced by logForwardMessage(), and LogForwardThread::run().

◆ gLogItemListNotEmpty

QWaitCondition gLogItemListNotEmpty
static

Definition at line 82 of file loggingserver.cpp.

Referenced by logForwardMessage(), and LogForwardThread::run().