3.0.17 • Published 5 years ago

frozor-logger v3.0.17

Weekly downloads
36
License
ISC
Repository
-
Last release
5 years ago

Frozor-Logger

A logger that extends Winston! Previously entirely custom, but at some point I realized other people might be better than me at making things.

Dependencies:

  • chalk
  • dateformat
  • winston

module.exports returns an instance of the Logger class, which directly extends the node module winston. This means all methods aside from the basic log methods should be the same as with "vanilla" winston.

The only changes I've made are with formatting/color, and allowing a prefix/global prefix on messages, since sometimes I have a lot of stuff logging.

Usage:

const Logger = require('frozor-logger');
const log = new Logger('MyPrefix');
log.info('Hello world!', 'AnotherPrefix');

Would output:

[03/12/2017 15:51:07] [MyPrefix|AnotherPrefix] INFO: Hello world!

You can omit MyPrefix when instantiating the logger to remove the global prefix, or remove AnotherPrefix to only show the global prefix. You can't change the global prefix once it's been instantiated.

3.0.17

5 years ago

3.0.16

6 years ago

3.0.15

6 years ago

3.0.14

6 years ago

3.0.13

7 years ago

3.0.12

7 years ago

3.0.11

7 years ago

3.0.10

7 years ago

3.0.9

7 years ago

3.0.8

7 years ago

3.0.7

7 years ago

3.0.6

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.0

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago