#include <stdio.h>#include <errno.h>#include <string.h>#include <stdlib.h>#include <stdarg.h>#include <time.h>#include "logger.h"#include "config_manager.h"Go to the source code of this file.
Defines | |
| #define | FLUSHIT fflush(LOG_FILE); |
| #define | LOGCHECK if (!LOG_FILE) return; |
Functions | |
| void | log_open (char *filename) |
| void | log_close () |
| static void | log_stamp (const char *type) |
| void | _log_info (const char *format,...) |
| void | _log_warning (const char *format,...) |
| void | _log_error (const char *format,...) |
| void | _log_js (const char *format,...) |
| void | _log_debug (const char *format, const char *file, int line, const char *function,...) |
| void | _print_backtrace (FILE *file) |
Variables | |
| FILE * | LOG_FILE = stderr |
Definition in file logger.cc.
| #define FLUSHIT fflush(LOG_FILE); |
Definition at line 52 of file logger.cc.
Referenced by _log_debug(), _log_error(), _log_info(), _log_js(), and _log_warning().
| #define LOGCHECK if (!LOG_FILE) return; |
Definition at line 54 of file logger.cc.
Referenced by _log_debug(), _log_error(), _log_info(), _log_js(), and _log_warning().
| void _log_debug | ( | const char * | format, | |
| const char * | file, | |||
| int | line, | |||
| const char * | function, | |||
| ... | ||||
| ) |
Definition at line 132 of file logger.cc.
References FLUSHIT, ConfigManager::isDebugLogging(), LOG_FILE, log_stamp(), and LOGCHECK.
| void _log_error | ( | const char * | format, | |
| ... | ||||
| ) |
| void _log_info | ( | const char * | format, | |
| ... | ||||
| ) |
| void _log_js | ( | const char * | format, | |
| ... | ||||
| ) |
| void _log_warning | ( | const char * | format, | |
| ... | ||||
| ) |
| void _print_backtrace | ( | FILE * | file | ) |
Definition at line 153 of file logger.cc.
References ConfigManager::isDebugLogging().
| void log_close | ( | ) |
| void log_open | ( | char * | filename | ) |
| static void log_stamp | ( | const char * | type | ) | [static] |
Definition at line 75 of file logger.cc.
References LOG_FILE.
Referenced by _log_debug(), _log_error(), _log_info(), _log_js(), and _log_warning().
| FILE* LOG_FILE = stderr |
Definition at line 50 of file logger.cc.
Referenced by _log_debug(), _log_error(), _log_info(), _log_js(), _log_warning(), log_close(), log_open(), and log_stamp().
1.6.1