Giter Site home page Giter Site logo

ihambert / klog Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 409 KB

通用高性能日志类,可保存到文件或数据库,采用生产者消费者双缓冲模式高性能读写日志,只对生产者加锁,消费者不需要锁,批量写入日志,分Error、Warn、Info、Debug4种日志,采用抽象工厂模式加载写日志的类,可设置写日志的等级,比如可以不保存调试的日志,或只保存异常日志

License: MIT License

C# 86.46% CSS 0.42% ASP 0.08% HTML 4.21% JavaScript 8.84%

klog's Introduction

klog's People

Contributors

ihambert avatar

Stargazers

 avatar  avatar lxhao avatar

Watchers

James Cloos avatar

klog's Issues

写入文件时每次都重新打开关闭文件

超喜欢凯子哥的这个工具, 发现写入文件时每次都重新打开关闭文件, 应该可以优化一下, 用户通常是把当天的所有日志写入一个文件, 或者几个文件, 不需要每次都重复打开关闭.

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.