#include <stdio.h>
#include <stdarg.h>
#include <string>
#include "utils.h"
Go to the source code of this file.
|
#define | CMBAR(ed, fmt, ...) Logger::msgBar(ed, fmt, ##__VA_ARGS__) |
|
#define | MESSAGE(ed, fmt, ...) Logger::messages(ed, fmt, ##__VA_ARGS__) |
|
#define | CMBAR_MSG(ed, fmt, ...) |
|
#define | LOG(lev, fmt, ...) |
|
#define | FATAL(fmt, ...) LOG(0, fmt, ##__VA_ARGS__) |
|
#define | ERROR(fmt, ...) LOG(10, fmt, ##__VA_ARGS__) |
|
#define | WARN(fmt, ...) LOG(100, fmt, ##__VA_ARGS__) |
|
#define | INFO(fmt, ...) |
|
#define | DEBUG(fmt, ...) |
|
#define | ULTRA_DEBUG(fmt, ...) |
|
◆ CMBAR
#define CMBAR |
( |
|
ed, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| Logger::msgBar(ed, fmt, ##__VA_ARGS__) |
◆ CMBAR_MSG
#define CMBAR_MSG |
( |
|
ed, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value: do { \
CMBAR(ed, fmt, ##__VA_ARGS__); \
MESSAGE(ed, fmt, ##__VA_ARGS__); \
} while(0)
◆ DEBUG
#define DEBUG |
( |
|
fmt, |
|
|
|
... |
|
) |
| |
◆ ERROR
#define ERROR |
( |
|
fmt, |
|
|
|
... |
|
) |
| LOG(10, fmt, ##__VA_ARGS__) |
◆ FATAL
#define FATAL |
( |
|
fmt, |
|
|
|
... |
|
) |
| LOG(0, fmt, ##__VA_ARGS__) |
◆ INFO
#define INFO |
( |
|
fmt, |
|
|
|
... |
|
) |
| |
◆ LOG
#define LOG |
( |
|
lev, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| |
Value: do { \
Logger::log(lev, "%s:%d: Lev=%d DLev=%d ", __FILE__, __LINE__, \
lev, Logger::logLevel()); \
Logger::log(lev, fmt, ##__VA_ARGS__); \
} while(0)
◆ MESSAGE
#define MESSAGE |
( |
|
ed, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| Logger::messages(ed, fmt, ##__VA_ARGS__) |
◆ ULTRA_DEBUG
#define ULTRA_DEBUG |
( |
|
fmt, |
|
|
|
... |
|
) |
| |
◆ WARN
#define WARN |
( |
|
fmt, |
|
|
|
... |
|
) |
| LOG(100, fmt, ##__VA_ARGS__) |