项目作者: Sleeplessy

项目描述 :
Colorfy your loggers!
高级语言: Pony
项目地址: git://github.com/Sleeplessy/pony-colorfylog.git
创建时间: 2018-02-07T07:30:00Z
项目社区:https://github.com/Sleeplessy/pony-colorfylog

开源协议:BSD 2-Clause "Simplified" License

下载


Colorful Logger Presets

Build Status

pony-colorfylog provides a helper class to help people put colorfied texts to console.

How to use?

Just clone this repo as a package.

  1. git clone git@github.com:Sleeplessy/pony-colorfylog.git colorfylog

Example

  1. use "logger"
  2. use "colorfylog"
  3. actor Main
  4. new create(env: Env) =>
  5. let logger = ColorLogger(Fine, env.out)
  6. logger.log("Our base is safe!", Fine)
  7. logger.log("User logged in base's server.", Info)
  8. logger.log("Some was attacking our system!", Warn)
  9. logger.log("System interepted!", Error)

Preview

AN SIMPLE EXAMPLE

LICENSE

Codes was released under BSD 2-Clause License.
Whatever you do, please check for the LICENSE file.(Well, I guess nobody would TAKE IT A LOOK)