33#define eman__log__h__ 1
48#define ENTERFUNC LOGDEBUG("Enter ")
49#define EXITFUNC LOGDEBUG("Exit ")
51#define LOGERR Log::logger()->loc(Log::ERROR_LOG, __FILE__, __LINE__, __func__); Log::logger()->error
53#define LOGWARN Log::logger()->loc(Log::WARNING_LOG, __FILE__, __LINE__, __func__); Log::logger()->warn
55#define LOGDEBUG Log::logger()->loc(Log::DEBUG_LOG, __FILE__, __LINE__, __func__); Log::logger()->debug
57#define LOGVAR Log::logger()->loc(Log::VARIABLE_LOG, __FILE__, __LINE__, __func__); Log::logger()->variable
83 int begin(
int argc,
char *argv[],
int ppid);
84 void end(
int ref,
const string& file =
"-",
const string& text =
"");
88 void error(
const char *format, ...);
92 void warn(
const char *format, ...);
96 void debug(
const char *format, ...);
100 void variable(
const char *format, ...);
109 void loc(
LogLevel level,
const string & file,
int linenum,
const string & func);
116 void vlog(
const char *format,
LogLevel level, va_list arg);
Log defines a way to output logging information.
void end(int ref, const string &file="-", const string &text="")
void debug(const char *format,...)
log a debug message.
void vlog(const char *format, LogLevel level, va_list arg)
void set_level(int level)
void loc(LogLevel level, const string &file, int linenum, const string &func)
int begin(int argc, char *argv[], int ppid)
begin() and start() are used by command-line programs
void error(const char *format,...)
log an error message.
void warn(const char *format,...)
log a warning message.
void set_logfile(const char *filename)
set log output file.
void variable(const char *format,...)
log a very-detailed-level debug message.