Print out logs no matter what the setting of -v/-q
This commit is contained in:
parent
b73a63fe35
commit
c4c0d24e7c
4
log.c
4
log.c
@ -81,13 +81,13 @@ void logLog(enum llevel_t ll, const char *fn, int ln, bool perr, const char *fmt
|
||||
bool print_time;
|
||||
};
|
||||
struct ll_t logLevels[] = {
|
||||
{"HR", "\033[0m", false, false},
|
||||
{"HB", "\033[1m", false, false},
|
||||
{"D", "\033[0;4m", true, true},
|
||||
{"I", "\033[1m", false, true},
|
||||
{"W", "\033[0;33m", true, true},
|
||||
{"E", "\033[1;31m", true, true},
|
||||
{"F", "\033[7;35m", true, true},
|
||||
{"HR", "\033[0m", false, false},
|
||||
{"HB", "\033[1m", false, false},
|
||||
};
|
||||
|
||||
time_t ltstamp = time(NULL);
|
||||
|
8
log.h
8
log.h
@ -43,13 +43,13 @@
|
||||
#define PLOG_F(...) logLog(FATAL, __func__, __LINE__, true, __VA_ARGS__);
|
||||
|
||||
enum llevel_t {
|
||||
HELP = 0,
|
||||
HELP_BOLD,
|
||||
DEBUG,
|
||||
DEBUG = 0,
|
||||
INFO,
|
||||
WARNING,
|
||||
ERROR,
|
||||
FATAL
|
||||
FATAL,
|
||||
HELP,
|
||||
HELP_BOLD,
|
||||
};
|
||||
|
||||
bool logInitLogFile(struct nsjconf_t *nsjconf, const char *logfile, enum llevel_t log_level);
|
||||
|
Loading…
Reference in New Issue
Block a user