@beforeyoubid/console-logger-adapter
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

LogDNA Console Logger Adapter

This is a console wrapper module to wrap console.xxx() and send all logs to LogDNA

yarn add @beforeyoubid/console-logger-adapter

Activate it

We follow 12-factors and we can enable and send log to LogDNA by supplying LOGDNA_KEY as part of the environment variables.

  LOGDNA_KEY=xxxxxxyyyyyyyzzzzzzz

Please note that on your local, you can set LOGDNA_KEY= to disable sending logs to LogDNA

Add this code to the main handler file

import sendConsoleLogsToLogDNA from '@beforeyoubid/console-logger-adapter';
sendConsoleLogsToLogDNA()

Readme

Keywords

none

Package Sidebar

Install

npm i @beforeyoubid/console-logger-adapter

Weekly Downloads

8

Version

1.0.4

License

ISC

Unpacked Size

4.41 kB

Total Files

4

Last publish

Collaborators

  • cayob
  • ben-byb
  • akram-byb
  • shiwam-byb
  • dmitrii8723
  • chainat-byb
  • mitch_byb