dyna-node-console
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

About

Makes the NodeJS logs little but prettier. Adds the type of log and timestamp.

Applied only on nodejs environments.

Usage

import "dyna-node-console";

Example

⚪ LOG   2018-10-20 19:06:48.155 --- Console log, info, debug, warn and error
⚪ LOG   2018-10-20 19:06:48.159 Example of log
🔵 INFO  2018-10-20 19:06:48.159 Example of info
🔶 WARN  2018-10-20 19:06:48.159 Example of warn
🐞 DEBUG 2018-10-20 19:06:48.159 Example of debug
🔴 ERROR 2018-10-20 19:06:48.159 Example of error
⚪ LOG   2018-10-20 19:06:48.160 --- Console objects
⚪ LOG   2018-10-20 19:06:48.160 Text and object { objectSample: { name: 'John' } }
⚪ LOG   2018-10-20 19:06:48.161 { objectSample: { name: 'John' } } object and text
⚪ LOG   2018-10-20 19:06:48.161 { objectSample: { name: 'John' } } { objectSample: { name: 'John' } }
⚪ LOG   2018-10-20 19:06:48.161 --- Console without params
⚪ LOG   2018-10-20 19:06:48.161
⚪ LOG   2018-10-20 19:06:48.161 --- Console time
⏱ TIME  2018-10-20 19:06:48.161 Time elapsed: 6.179ms
⚪ LOG   2018-10-20 19:06:48.162 --- ...bye

/dyna-node-console/

    Package Sidebar

    Install

    npm i dyna-node-console

    Weekly Downloads

    3

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    46.7 kB

    Total Files

    30

    Last publish

    Collaborators

    • dennisat