debug-rs

A debug crate for rust inspired by NodeJS debug module.
Features
- colored
- including crate name, file name and line
- filtered by glob patterns.
Install
= "0.1.0"
or using cargo-edit
Usage
Here is the code in examples folder:
extern crate debug;
Then run with environment variable DEBUG=debug (because the examples' package name is still debug):

If environment variable DEBUG is undefined, then it won't print anything.
DEBUG format
- Single glob pattern for
<package name>:<file name>: e.g.DEBUG=debug* - Multi glob patterns separated by comma: e.g.
DEBUG=debug:examples*,hyper*,
Output format
<package name>:<file name>:L<line number> ...custom variables
License
MIT