more options,help message

This commit is contained in:
wangyu
2017-07-26 08:51:05 +08:00
committed by wangyu
parent 93c0d789c4
commit 66c201e629
5 changed files with 267 additions and 116 deletions

View File

@@ -4,8 +4,8 @@ int log_level=log_info;
int enable_log_position=1;
int enable_log_color=1;
char log_text[][20]={"NEVER","FATAL","ERROR","WARN","INFO","DEBUG","TRACE",""};
char log_color[][20]={RED,RED,RED,YEL,GRN,BLU,""};
void log0(const char * file,const char * function,int line,int level,const char* str, ...) {
if(level>log_level) return ;