32 lines
961 B
C
32 lines
961 B
C
#ifndef _NWLOG_H_
|
|
#define _NWLOG_H_
|
|
|
|
/*
|
|
* Common logging facade vocabulary.
|
|
*
|
|
* This header is intentionally declarative for now. It records the new
|
|
* semantic 1..5 level split that future nwlog_* wrappers should use while the
|
|
* legacy XDPRINTF threshold migration is still ongoing. Future configuration
|
|
* parsers should treat the numbers and names as synonyms: off/0, error/1,
|
|
* warn/2, info/3, debug/4 and trace/5.
|
|
*/
|
|
|
|
typedef enum nwlog_level_e {
|
|
NWLOG_LEVEL_ERROR = 1,
|
|
NWLOG_LEVEL_WARN = 2,
|
|
NWLOG_LEVEL_INFO = 3,
|
|
NWLOG_LEVEL_DEBUG = 4,
|
|
NWLOG_LEVEL_TRACE = 5,
|
|
|
|
/*
|
|
* Maintainer-only unsafe detail. This is the collapse target for useful
|
|
* legacy XDPRINTF levels 6..99 and must not be enabled in normal builds or
|
|
* by nw.ini. Normal builds must treat nwlog_detail() as a no-op.
|
|
* Maintainer builds may emit this independently from the normal 1..5 runtime
|
|
* threshold.
|
|
*/
|
|
NWLOG_LEVEL_DETAIL = 6
|
|
} NwLogLevel;
|
|
|
|
#endif
|