Git Product home page Git Product logo

tinylog's People

Contributors

nabijaczleweli avatar yanminhui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tinylog's Issues

跨DLL产生多个实例

basic_registry 作为单例,在不同的 DLL 中使用被编译成多个实例对象,未达到全局唯一的目的。

特性需求:多个日志记录器 & 记录附加模式

  1. 多个日志记录器

每个日志记录器能够加载多个日志槽,每个日志槽可以附加到多个日志记录器,相互独立。

e.g.

dlout(name, level) << message << std::endl;
  1. 记录附加模式
  • 多线程情况下,缓存行记录,直到换行再刷新;
  • 单线程情况下,直接刷新应用。(包括多线程下,日志只在一个线程中生效,有时界面要看到动态效果,如linux启动画面。)
  • 格式化或布局可成为日志槽成员。

e.g.

dlout(name, level) << "loading......";
dlout(name, level) << "ok" << std::endl;
// output: loading...... ok

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.