Giter VIP home page Giter VIP logo

awesomelog's Introduction

日志系统框架

AwesomeLog 是一个基于mmap, 高性能,高可用的,无丢失的,简单易用的日志系统框架。

特性介绍

特性 简介
自定义日志保存路径 默认保存在Android/data/com.xxxx.xxxx/files/log中
自定义日志缓存路径 默认保存在Android/data/com.xxxx.xxxx/files/cache中
自定义日志最大容量 默认70M,超过最大容量就不再写入
日志按天保存,自定义日志保存天数 默认保存最近7天的日志,超过七天的日志将会被删除
自定义日志加密方式 默认不加密,可以实现LogEncrypt接口,实现自定义的加密方式
日志记录通用信息 在日志系统初始化的时候,会一并记录App版本,手机型号等信息,网络切换的时候还会记录网络类型
日志格式为CSV格式,方便后端解析展示 写日志的时候,会同时写入当前时间,线程ID,线程的名字,Log等级,以及当前所在类和方法的名字
支持控制台打印日志信息 在写入日志到本地的同时,也会在控制台输出相应的日志信息

添加依赖

implementation 'com.android.jesse:awesome-log:1.0.6'

初始化

//初始化日志系统
ALog.init(new LogConfig(this));

打印日志

ALog.i("zyf", "hello AwesomeLog");

awesomelog's People

Contributors

jesse505 avatar

Watchers

 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.