Skip to content

andrehrferreira/dek-logger

Repository files navigation

@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'));

About

Winston interface plugin for DEK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published