@dekproject/logger
v0.1.5
Published
Logger interface plugin for DEK
Downloads
2
Readme
@dekproject/logger
Logger interface plugin for DEK
What does this plugin do?
- Control configuration for connection to Logger in production development mode in a simplified way with dotenv
- Performs connection implementation along the lines ES6 being pre requirement to start the project
Instalation
To install the bootstrap we recommend using the CLI
$ yarn add @dekproject/logger --save
$ nano .env
In the .env file add the following settings
LOGGER_BUGSNAG_API_KEY=apiKey
Usage
Using direct
$ npm i @dekproject/scope
Using in the standard DEK skeleton
import { $, app, logger, bugsnagexpress } from "@dekproject/scope";
app.use(bugsnagexpress.errorHandler);
logger.error(throw new Error('Test error'));