Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有 xml 配置 log4crc 的 log4c 库,我需要弄清楚如何关闭/打开日志记录。我找不到任何解释 log4crc 配置文件中参数的文档,
尝试将日志优先级设置为“notset”
如果这不起作用,请确保系统找不到您的日志配置文件并取消设置环境变量 LOG4C_APPENDER 和 LOG4C_PRIORITY
您无法通过 set_priority() 关闭,因为 log4cenum 不支持 OFF,在 logj 中可用
enum