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

4
log.h
View File

@@ -73,6 +73,10 @@ const int log_warn=3;
const int log_info=4;
const int log_debug=5;
const int log_trace=6;
const int log_end=7;
const char log_text[][20]={"NEVER","FATAL","ERROR","WARN","INFO","DEBUG","TRACE",""};
const char log_color[][20]={RED,RED,RED,YEL,GRN,BLU,""};
extern int log_level;
extern int enable_log_position;