Skip to content
/ NLoger Public
forked from daodaoliang/NLoger

Qt 编写的跨线程安装的日志组件库

License

Notifications You must be signed in to change notification settings

wyyrepo/NLoger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

日志组件使用说明

[TOC]

0.如何添加项目

  • 首先拷贝源码到你的工程文件目录;
  • 在你的项目 pro文件中添加:
# import dll file
include($$PWD/../NLogger/NLogger_inc.pri)

具体的路径请按照你的项目情况进行修改

1. 测试用例

    LogManager logInstance;
    logInstance.InitLog("./log","daodaoliang");
    qDebug()<<"test";
    qDebug()<<logInstance.getLogFilePath();
    qWarning() << "Use qWarning";
    qCritical() << "Use qCritical";
    LOG_TRACE() << "Use LOG_DEBUG";
    LOG_DEBUG() << "Use LOG_DEBUG";
    LOG_INFO() << "Use LOG_INFO";
    LOG_WARNING() << "Use Warning";
    LOG_ERROR() << "Use LOG_ERROR";

2. 组件路线图

3. changelog

V 1.0.1.0 在cutelogger 开源项目发展来; V 1.0.2.0 重新封装了对外接口;

About

Qt 编写的跨线程安装的日志组件库

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.9%
  • QMake 2.3%
  • Other 0.8%