|
SASC-NG
DVBSoftCAM
|
#include <stdlib.h>#include <stdio.h>#include <stdarg.h>#include <time.h>#include <sys/time.h>#include <vdr/tools.h>#include <vdr/thread.h>#include "log.h"#include "misc.h"Go to the source code of this file.
Defines | |
| #define | LMOD_SUP 32 |
| #define | LMOD_CFG_VALID 0x80000000 |
Variables | |
| struct LogConfig | logcfg |
| static struct LogModule | lm_general |
| static struct LogModule * | mods [LMOD_SUP] = { &lm_general } |
| static int | config [LMOD_SUP] = { LMOD_ENABLE|L_GEN_ALL|LMOD_CFG_VALID } |
| static int | cmask [LMOD_SUP] = { LMOD_ENABLE|L_GEN_ALL } |
| static cMutex | logfileMutex |
| static FILE * | logfile = 0 |
| static bool | logfileShutup = false |
| static bool | logfileReopen = false |
| static long long | logfileSize |
| static unsigned int | lastCrc = 0 |
| static int | lastC = 0 |
| static int | lastCount = 0 |
| static cTimeMs | lastTime |
| static cMutex | lastMutex |
| cUserMsgs | ums |
| #define LMOD_CFG_VALID 0x80000000 |
Definition at line 33 of file log.c.
Referenced by cLogging::AddModule(), cLogging::Enabled(), cLogging::GetConfig(), cLogging::ParseConfig(), cLogging::SetModuleDefault(), cLogging::SetModuleOption(), and cLogging::SetModuleOptions().
| #define LMOD_SUP 32 |
Definition at line 32 of file log.c.
Referenced by cLogging::AddModule(), cLogging::Enabled(), cLogging::GetClassByName(), cLogging::GetConfig(), and cLogging::ParseConfig().
int cmask[LMOD_SUP] = { LMOD_ENABLE|L_GEN_ALL } [static] |
Definition at line 49 of file log.c.
Referenced by cLogging::GetConfig(), cLogging::ParseConfig(), and cLogging::SetModuleDefault().
int config[LMOD_SUP] = { LMOD_ENABLE|L_GEN_ALL|LMOD_CFG_VALID } [static] |
Definition at line 48 of file log.c.
Referenced by cLogging::AddModule(), cLogging::Enabled(), cLogging::GetConfig(), cLogging::GetModuleOptions(), cLogging::ParseConfig(), cLogging::SetModuleDefault(), cLogging::SetModuleOption(), and cLogging::SetModuleOptions().
struct LogModule lm_general [static] |
{
(LMOD_ENABLE|L_GEN_ALL)&LOPT_MASK,
(LMOD_ENABLE|L_GEN_ALL)&LOPT_MASK,
"general", { "error","warn","info","debug","misc" }
}
cMutex logfileMutex [static] |
| bool logfileReopen = false |
Definition at line 52 of file log.c.
Referenced by cLogging::ReopenLogfile().
bool logfileShutup = false [static] |
long long logfileSize [static] |
struct LogModule* mods[LMOD_SUP] = { &lm_general } [static] |
Definition at line 424 of file log.c.
Referenced by cScPlugin::MainThreadHook().