@rafflebox-technologies-inc/rafflebox-logger
TypeScript icon, indicating that this package has built-in type declarations

1.9.1-1 • Public • Published

Rafflebox Logger

Standard JSON logger for Node services, wraps the Winston library.

Usage

Installation

  1. yarn add @rafflebox-technologies-inc/rafflebox-logger

Usage

To change the logging level set the environment variable. For example:

export LOGGING_LEVEL=debug

By default the NODE_ENV will output json log format if the environment is test or production. For development it will output pretty format. If you want to output pretty format you can set the following environment variables:

export LOGGING_FORMAT=pretty

Development

  1. Clone this repo
  2. yarn
  3. yarn link
  4. In the package you want to test in run yarn link @rafflebox-technologies-inc/rafflebox-logger
  5. Build package with yarn build or turn on watch mode with yarn watch

Testing

yarn test

Building

yarn build

If you need to clear the build cache run yarn clean

Publishing

  1. Generate a Github PAT with access to package write + read + repo functions.
  2. ./publish.sh
  3. Enter your Github PAT instead of the password when prompted.

Readme

Keywords

none

Package Sidebar

Install

npm i @rafflebox-technologies-inc/rafflebox-logger

Weekly Downloads

0

Version

1.9.1-1

License

UNLICENSED

Unpacked Size

43.4 kB

Total Files

11

Last publish

Collaborators

  • jamierafflebox