#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 expose cumulative numeric masks and names as synonyms: * off/0, error/1, warn/12, info/123, debug/1234 and trace/12345. */ 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