encore-logger
v1.0.0
Published
Logger class that allows us add messages to one or many outputs
Downloads
2
Maintainers
Keywords
Readme
Encore Logger Service
Logger class that allows us add messages to one or many outputs
Install
$ npm install encore-logger
Usage
- Import Logger class
- Create an instance, using one or many Output types
- Use Encore Logger instance to add messages
Documentation
Currently, Encore logger is working with two output types: - Console - Sentry
Console logger add message to the console. It doesn't require any config properties.
Sentry logger add message to Sentry. Sentry require DNS key (sentryDNSKey) and environment (sentryEnv) to be configured.
Each logger provide three methods: - info - warn - error