a bunch of commit together,i lost some commit log while upgrading git

This commit is contained in:
wangyu
2017-07-26 06:29:40 +08:00
committed by wangyu
parent c6371c0ef5
commit 93c0d789c4
6 changed files with 591 additions and 345 deletions

8
log.h
View File

@@ -66,7 +66,7 @@ using namespace std;
#define RESET "\x1B[0m"
const int log_impossible=0;
const int log_never=0;
const int log_fatal=1;
const int log_error=2;
const int log_warn=3;
@@ -75,11 +75,15 @@ const int log_debug=5;
const int log_trace=6;
extern int log_level;
extern int enable_log_position;
extern int enable_log_color;
#define log(...) log0(__FILE__,__FUNCTION__,__LINE__,__VA_ARGS__)
#define mylog(...) log0(__FILE__,__FUNCTION__,__LINE__,__VA_ARGS__)
void log0(const char * file,const char * function,int line,int level,const char* str, ...);
void log_bare(int level,const char* str, ...);
#endif