@jswork/next-dt-log

1.1.3 • Public • Published

next-dt-log

Datetime log for next.

version license size download

installation

npm install -S @jswork/next-dt-log

apis

api params description
date msgs Print date prefix log.
time msgs Print time prefix log.
dt msgs Print datetime prefix log.

usage

import NxDtLog from '@jswork/next-dt-log';

const logger = new NxDtLog();

logger.time('i will print current time');
logger.date('i will print', 'current', 'date');
logger.dt('i will','print current datetime');

// [16:13:02] i will print current time
// [2020-11-13] i will print current date
// [2020-11-13 16:13:02] i will print current datetime

// Or simple to use static properties`log/error/info`:
NxDtLog.log.dt('i am from datetime logger.');
NxDtLog.error.dt('i am from datetime error.');

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-dt-log

Weekly Downloads

29

Version

1.1.3

License

MIT

Unpacked Size

6.21 kB

Total Files

5

Last publish

Collaborators

  • afeiship