colorful_log 0.0.1 copy "colorful_log: ^0.0.1" to clipboard
colorful_log: ^0.0.1 copied to clipboard

A colorful log utils.

ColorLog #

一款彩色的Log日志输出工具。

Screenshot

English | 中文 #

开始 #

1. 添加依赖 #

打开pubspec.yaml

# 远程依赖方式
dependencies:
  colorful_log: ^0.0.1

# 本地依赖方式
dependencies:
  colorful_log:
    path: PathOfProject

# git方式
dependencies:
  colorful_log:
    git:
      url: git://github.com/EngrZhou/ColorfulLog.git

2. 使用 #

///是否使用彩色log样式 true:使用 false:不使用
Log.setColorful(false);
///设置log输出级别
Log.setLogLevel(Log.warn);
///as android usual style
Log.V(tag, 'This is VERBOSE level colorful Log with custom tag.');

///as dart
Log.i(tag: tag, msg: 'This is INFO    level colorful Log with custom tag.');

///as dart
Log.d(msg: 'This is DEBUG   level colorful Log with none tag.');

LICENSE #

The 3-Clause BSD License

4
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A colorful log utils.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on colorful_log