Mercurial > hg > freeDiameter
comparison libfdproto/log.c @ 1407:d4a4ab5239c7
add log level FD_LOG_INFO
Add log level FD_LOG_INFO, below FD_LOG_NOTICE and above FD_LOG_DEBUG.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Tue, 18 Feb 2020 17:01:07 +1100 |
parents | 84a3c9c4b834 |
children | 566bb46cc73f |
comparison
equal
deleted
inserted
replaced
1406:deaa89f4a994 | 1407:d4a4ab5239c7 |
---|---|
110 } | 110 } |
111 | 111 |
112 switch(printlevel) { | 112 switch(printlevel) { |
113 case FD_LOG_ANNOYING: printf("%s A ", (use_colors == 1) ? "\e[0;37m" : ""); break; | 113 case FD_LOG_ANNOYING: printf("%s A ", (use_colors == 1) ? "\e[0;37m" : ""); break; |
114 case FD_LOG_DEBUG: printf("%s DBG ", (use_colors == 1) ? "\e[0;37m" : ""); break; | 114 case FD_LOG_DEBUG: printf("%s DBG ", (use_colors == 1) ? "\e[0;37m" : ""); break; |
115 case FD_LOG_INFO: printf("%sINFO ", (use_colors == 1) ? "\e[1;37m" : ""); break; | |
115 case FD_LOG_NOTICE: printf("%sNOTI ", (use_colors == 1) ? "\e[1;37m" : ""); break; | 116 case FD_LOG_NOTICE: printf("%sNOTI ", (use_colors == 1) ? "\e[1;37m" : ""); break; |
116 case FD_LOG_ERROR: printf("%sERROR ", (use_colors == 1) ? "\e[0;31m" : ""); break; | 117 case FD_LOG_ERROR: printf("%sERROR ", (use_colors == 1) ? "\e[0;31m" : ""); break; |
117 case FD_LOG_FATAL: printf("%sFATAL! ", (use_colors == 1) ? "\e[0;31m" : ""); break; | 118 case FD_LOG_FATAL: printf("%sFATAL! ", (use_colors == 1) ? "\e[0;31m" : ""); break; |
118 default: printf("%s ??? ", (use_colors == 1) ? "\e[0;31m" : ""); | 119 default: printf("%s ??? ", (use_colors == 1) ? "\e[0;31m" : ""); |
119 } | 120 } |