Easylogging++之日志级别

本文详细介绍了Easylogging++支持的日志级别,包括Global、Trace、Debug、Fatal、Verbose和Unknown,特别强调了各级别的使用场景和特性,如Debug在Release模式下的屏蔽,Fatal级别的程序中断控制,以及Verbose级别的详细日志记录。还提到了如何通过设置门阀值来控制日志输出,并给出了相关示例。
摘要由CSDN通过智能技术生成

  下表中列举了GitHub上给出的Easyloggin++支持的日志级别(按日志级别由低到高排序):

 

Level Description
Global Generic level that represents all levels. Useful when setting global configuration for all levels.
Trace Information that can be useful to back-trace certain events - mostly useful than debug logs.
Debug Informational events most useful for developers to debug application. Only applicable if NDEBUG is not defined (for non-VC++) or _DEBUG is defined (for VC++).
Fatal Very severe error event that will presumably lead the application to abort.
Error Error information but will continue application to keep running.
Warning Information representing errors in application but application will keep running.
Info Mainly useful to represent current progress
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值