5.0.0 • Published 2 years ago

better-logging v5.0.0

Weekly downloads
875
License
MIT
Repository
github
Last release
2 years ago

NPM Version Supported Types NPM Downloads Build Status Master Build Status Dev LICENSE FOSSA Status

better-logging

demo output of better-logging in action

Out of the box Javascript comes five different standardized logging types. However, as it stands only browsers are taking advantage of these different methods of logging. better-logging aims to improve the default logging experience of any node application, it is designed to be a drop in replacement for the default logging methods. Since better-logging only decorates the default logging methods you won't lose any functionality provided by other tooling. better-logging is not meant to be the be all and end all of node.js logging. It is just supposed to increase the usefulness of the default logging methods.

Install: npm i better-logging


// Default in node.js
console.debug('foo'); //  foo
console.log('foo'); //    foo
console.info('foo'); //   foo
console.warn('foo'); //   foo
console.error('foo'); //  foo

// With better-logging
require('better-logging')(console);

console.debug('foo'); //  [11:46:35.294] [debug] foo
console.log('foo'); //    [11:46:35.296] [log] foo
console.info('foo'); //   [11:46:35.296] [info] foo
console.warn('foo'); //   [11:46:35.298] [warn] foo
console.error('foo'); //  [11:46:35.298] [error] foo
console.line('foo'); //   foo

Documentation

https://olian04.gitbook.io/better-logging/

License

See LICENSE

FOSSA Status

5.0.0

2 years ago

4.7.0

3 years ago

4.6.0

3 years ago

4.5.1

3 years ago

4.5.0

4 years ago

4.4.1

4 years ago

4.4.0

4 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.5.0

5 years ago

3.4.0

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago