@dekproject/logger

0.1.5 • Public • Published

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

Package Sidebar

Install

npm i @dekproject/logger

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

27.2 kB

Total Files

15

Last publish

Collaborators

  • gislainyvelasco
  • andrehrf