fancy-log
    Overview
    Documentation
    Insights
    Code
    Contributors
    Dependencies
    Alternatives

fancy-log

Log things, prefixed with a timestamp.

1.3.3  •  Updated 1 years ago  •  by gulpjs  •  MIT License

fancy-log

NPM version Downloads Travis Build Status AppVeyor Build Status Coveralls Status Gitter chat

Log things, prefixed with a timestamp.

Usage

var log = require('fancy-log');

log('a message');
// [16:27:02] a message

log.error('oh no!');
// [16:27:02] oh no!

API

log(msg...)

Logs the message as if you called console.log but prefixes the output with the current time in HH:MM:ss format.

log.error(msg...)

Logs the message as if you called console.error but prefixes the output with the current time in HH:MM:ss format.

log.warn(msg...)

Logs the message as if you called console.warn but prefixes the output with the current time in HH:MM:ss format.

log.info(msg...)

Logs the message as if you called console.info but prefixes the output with the current time in HH:MM:ss format.

log.dir(msg...)

Logs the message as if you called console.dir but prefixes the output with the current time in HH:MM:ss format.

License

MIT

How often do you use dark themes on other websites?

Popularity

Weekly Downloads
1.9M
Stars
91

Maintenance

Development

Last ver 1 year ago
Created 4 years ago
Last commit 1 year ago
1 hour between commits

Technology

Node version: 8.11.1
6.5K unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

4 contributors
Blaine Bublitz
Maintainer, 21 commits, 3 merges
Works at Paying the maintainers Tidelift
jonschlinkert
1 commits, 1 PRs
Works at sellside
Aman Mittal
1 commits, 1 PRs
Zack Schuster
1 commits
contra
Maintainer
Works at staeco
Takayuki Sato
Maintainer, 1 PRs
Works at self-employed

Tags

console.log
log
logger
logging
pretty
timestamp
Ready for the next level?
Join Openbase's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
© 2020 Devstore, Inc.