1.0.3 • Published 3 years ago

xtlog v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
3 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

3 years ago

1.0.2

3 years ago

1.0.2-0

3 years ago

1.0.1

3 years ago