Giter Club home page Giter Club logo

xlogger's Introduction

xlogger

轻量、美观强大的Flutter日志库,可同时将日志打印在如 Logcat、Console 和文件(MMKV)中。 支持超大字符串、自定义日志颜色、是否保存到本地等功能

Input

Getting Started

Install

在你的 pubspec.yaml 文件中添加以下代码 '''

'''

Init

''' @override void initState() { super.initState(); // the aesKey and aesIv length always 16 XLogger.init(XLoggerConfig('aesKey', 'aesIv', true, false)); } '''

Use

''' //print Debug Log XLogger.d("debug log", saveToFile: false,tag:"LogTag");

//print Info Log XLogger.i("debug log", saveToFile: false,tag:"LogTag");

//print Warning Log XLogger.w("debug log", saveToFile: false,tag:"LogTag");

//print Error Log XLogger.e("debug log", saveToFile: false,tag:"LogTag");

//print Verbose Log XLogger.v("debug log", saveToFile: false,tag:"LogTag");

在 所有方法中 saveToFile 和 tag 是可选的;saveToFile default is false tag default is Null; '''

Other Config

其它高级配置请查看XloggerConfig代码

xlogger's People

Watchers

 avatar

Forkers

mrleebean

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.