LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Logging.cpp File Reference
#include "Common.h"
#include <glib.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <cstring>
#include <map>
#include <errno.h>
#include <sys/prctl.h>
#include <sys/resource.h>
#include "Logging.h"
#include "MutexLocker.h"
#include "Settings.h"
Include dependency graph for Logging.cpp:

Classes

class  Location
 
struct  Details
 

Macros

#define COLORESCAPE   "\033["
 
#define RESETCOLOR   COLORESCAPE "0m"
 
#define BOLDCOLOR   COLORESCAPE "1m"
 
#define REDOVERBLACK   COLORESCAPE "1;31m"
 
#define BLUEOVERBLACK   COLORESCAPE "1;34m"
 
#define YELLOWOVERBLACK   COLORESCAPE "1;33m"
 

Functions

bool LunaChannelEnabled (const char *channel)
 
LunaLogContext syslogContextGlobal ()
 
LunaLogContext syslogContextJavascript ()
 
PmLogLevel GLogToPmLogLevel (GLogLevelFlags flags)
 
void logInit ()
 
void logFilter (const gchar *log_domain, GLogLevelFlags logLevel, const gchar *message, gpointer unused_data)
 
void logFailure (const gchar *message, const gchar *file, int line, const gchar *function)
 
void logFailedVerify (const gchar *test, const gchar *file, int line, const gchar *function)
 
void logCheck (const gchar *test, const gchar *file, int line, const gchar *function)
 

Macro Definition Documentation

#define BLUEOVERBLACK   COLORESCAPE "1;34m"
#define BOLDCOLOR   COLORESCAPE "1m"
#define COLORESCAPE   "\033["
#define REDOVERBLACK   COLORESCAPE "1;31m"
#define RESETCOLOR   COLORESCAPE "0m"
#define YELLOWOVERBLACK   COLORESCAPE "1;33m"

Function Documentation

PmLogLevel GLogToPmLogLevel ( GLogLevelFlags  flags)
void logCheck ( const gchar *  test,
const gchar *  file,
int  line,
const gchar *  function 
)
void logFailedVerify ( const gchar *  test,
const gchar *  file,
int  line,
const gchar *  function 
)
void logFailure ( const gchar *  message,
const gchar *  file,
int  line,
const gchar *  function 
)
void logFilter ( const gchar *  log_domain,
GLogLevelFlags  logLevel,
const gchar *  message,
gpointer  unused_data 
)
void logInit ( )
bool LunaChannelEnabled ( const char *  channel)
LunaLogContext syslogContextGlobal ( )
LunaLogContext syslogContextJavascript ( )