当前位置:网站首页>Qlogsystem log system configuration use

Qlogsystem log system configuration use

2022-06-25 14:51:00 -Ximen blowing snow

Introduce

QLogSystem Is a very effective and easy to use C ++( Use Qt Framework) Record library for . QLogsystem take Java The style recorder hierarchy is brought to C ++, Very simple API, This can also be used in the library . Using the appropriate logger hierarchy logs can be categorized and filtered at run time . You can configure and change the format of log messages and output respectively . QLogsystem Very fast . Log messages and their parameters are evaluated only when the log level is large enough , So debug messages do not affect performance . QLogsystem It's thread safe , But locking is only done when needed .

The main features :

  • Easy to use , Simple API
  • Convenient log macros ( Messages with parameters )
  • Very fast ( Late parameter evaluation )
  • Threadsafe.
  • Java Style recorder hierarchy
  • Unique log messages ID
    stay scripts There are two... In the directory python Script , To ensure that the logs in the project id Is the only one.
    logid-generator.py The script recursively traverses a given directory , And check or modify the log messages id.
    The root directory must contain version files .
    logid-info.py From a given log id Version information can be extracted from ..
    Example :
#  Generate logs in a given directory id
#  notes :  Will modify the file !
scripts/logid-generator.py <
原网站

版权声明
本文为[-Ximen blowing snow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200518258119.html