1 #ifndef ALLOFW_LOGGER_H 2 #define ALLOFW_LOGGER_H 28 static const int kVerbose = 0;
29 static const int kInfo = 100;
30 static const int kWarning = 200;
31 static const int kError = 300;
32 static const int kFatal = 400;
35 virtual void setLevelFilter(
int minimum_level) = 0;
38 virtual void pushScope(
const char* prefix =
" ") = 0;
39 virtual void popScope() = 0;
41 virtual void print(
int level,
const char*
string) = 0;
42 virtual void printf(
int level,
const char* fmt, ...) = 0;
43 virtual void vprintf(
int level,
const char* fmt, va_list args) = 0;
56 virtual void setLevelFilter(
int minimum_level)
override;
57 virtual void pushScope(
const char* prefix =
" ")
override;
58 virtual void popScope()
override;
59 virtual void print(
int level,
const char*
string)
override;
60 virtual void printf(
int level,
const char* fmt, ...)
override;
61 virtual void vprintf(
int level,
const char* fmt, va_list args)
override;
65 virtual void loggerOutput(
int level,
const char*
string) = 0;
76 void print(
const char*
string);
77 void printf(
const char* fmt, ...);
void operator()(const char *str)
Definition: logger.h:75
static void SetDefault(LoggerFactory *factory)
virtual Logger * getThreadLogger()=0
static LoggerFactory * Default()
virtual void setThreadLogger(Logger *logger)=0
Inherit this to make a class non-copyable.
Definition: common.h:44
virtual ~Logger()
Definition: logger.h:45
static Logger * Default()
Definition: logger.h:49
virtual ~LoggerFactory()
Definition: logger.h:18