encore-logger
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Encore Logger Service

Logger class that allows us add messages to one or many outputs

Install

$ npm install encore-logger

Usage

  1. Import Logger class
  2. Create an instance, using one or many Output types
  3. 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

/encore-logger/

    Package Sidebar

    Install

    npm i encore-logger

    Weekly Downloads

    37

    Version

    1.0.0

    License

    none

    Unpacked Size

    47.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • joaquinvolpe
    • dpiletski
    • shivalijindal
    • xiaottg
    • leonardo.moreno
    • galvogalvo
    • chasenyc
    • davidbrewer
    • paulrumyantsevitr
    • a.bobrovnik
    • yuriyibc
    • ipanfilenko