Coder Social home page Coder Social logo

zlog's Introduction

Zlog

概述

Zlog 是一个适用于 iOS, Android, MacOS 端的高性能日志框架。借鉴微信Xlog以及美团Logan,但对比Xlog,它更加轻量级,无需依赖 boost 库,函数调用、命名以及逻辑更加清晰;对比Logan,它无需在上层保证线程安全,节约了线程调度的时间。

性能测试结果:

一条日志大约200个字符长度,iphone 8,写入 10W 条数据

Xlog 4.6s

Langon 51s

Zlog 3.8s

引入方式

iOS 端引入方式:

pod 'Zlog'

安卓端引入方式:

打开 'android' 路径下项目,自行编译 .so 库即可。

未完成

  1. 单日数据量达到文件大小阈值后,分文件写入
  2. 过期自动删除日志文件

zlog's People

Contributors

yangjie2 avatar yangjie09 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

yangjie09

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.