Coder Social home page Coder Social logo

asdlei99 / taologger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaredtao/taologger

0.0 0.0 0.0 46 KB

Qt自制简易好看的日志系统(Implement a simple and beautify log system with Qt )

License: MIT License

QML 8.35% C++ 79.41% QMake 9.58% Shell 2.66%

taologger's Introduction

TaoLogger

简介

Qt制作的简易、好看的Log系统

代码量极少

麻雀虽小五脏俱全

预览

status

Ubuntu/MacOS Windows License
lin-badge win-badge license-badge

使用

源代码拷过去,在main函数的QCoreApplication/QApplication构造之后,调用一下init函数就行了。

例如:

#include "TaoLogger.h"
//省略其它头文件
...
...
int main(int argc, char *argv[])
{
   QApplication app(argc, argv);
   initLog();
   ...
   return app.exec();
}

initLog函数的定义如下:

void initLog(const QString &logPath = QStringLiteral("Log"), int logMaxCount = 1024, bool async = true);

其中logPath为log存储路径,默认为Log文件夹。

logMaxCount最大文件数,默认为1024。

async为异步存储,默认为true。

开发环境

  • Qt 5.9.x Windows

原理

详细的说明看我博客: Qt自制简易好看的日志系统

联系方式:


作者 涛哥
开发理念 传承工匠精神
QQ 759378563
微信 xsd2410421
邮箱 [email protected]
blog https://jaredtao.github.io

QQ(TIM)、微信二维码

请放心联系我,乐于提供咨询服务,也可洽谈有偿技术支持相关事宜。

打赏

觉得分享的内容还不错, 就请作者喝杯奶茶吧~~

taologger's People

Contributors

jaredtao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.