|
luna-sysmgr-common
|
#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"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) |
| Functions that implement the macros above. You probably don't want to call them directly... More... | |
| void | logCheck (const gchar *test, const gchar *file, int line, const gchar *function) |
| #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" |
| 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 | ||
| ) |
Functions that implement the macros above. You probably don't want to call them directly...
| 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 | ( | ) |