1.0.3 • Published 4 years ago

xtlog v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

XTLOG

Install

npm install xtlog --save

Using

const {l, i, w, e} = require('xtlog');

l('This is log: ', 'ab', 123, [4, 5, 6], true, { c: 'de', f: 78 });
i('This is info: ', 'ab', 123, [4, 5, 6], true, { c: 'de', f: 78 });
w('This is warn: ', 'ab', 123, [4, 5, 6], true, { c: 'de', f: 78 });
e('This is error: ', 'ab', 123, [4, 5, 6], true, { c: 'de', f: 78 });

If you want to overide console.log:

require('xtlog').apply();

Previous

xtlog terminal for info log

Roadmap

StatusFeatureDescription
Use l,i,w,e to logl,i,w,e alter for console.log/info/warn/error
Make global log styleApply console.log has same style with xtlog
Log with name filelog to console and display which file is logged
Write to filesave file when logging
Level logconfig level show log
1.0.3

4 years ago

1.0.2

4 years ago

1.0.2-0

4 years ago

1.0.1

4 years ago