xtlog

1.0.3 • Public • Published

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

Status Feature Description
Use l,i,w,e to log l,i,w,e alter for console.log/info/warn/error
Make global log style Apply console.log has same style with xtlog
Log with name file log to console and display which file is logged
Write to file save file when logging
Level log config level show log

/xtlog/

    Package Sidebar

    Install

    npm i xtlog

    Weekly Downloads

    9

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    7.17 kB

    Total Files

    9

    Last publish

    Collaborators

    • hxtruong6