@beecode/msh-node-log
TypeScript icon, indicating that this package has built-in type declarations

2.2.3 • Public • Published

Build Status codecov GitHub license
NPM

msh-node-log

Micro-service helper: node environment

This project is intended to be used in typescript project to help with logging needs.

Install

npm i @beecode/msh-node-log

Diagram

vision-diagram

Logger Strategy

Define how and if we are logging.

NoLogger

This is the default logging strategy, meaning the logging is ignored.

ConsoleLogger

This is a simple logging strategy, it outputs all logs to console with a prefix of the log level (ERROR:, WARN:, INFO: , DEBUG:).

import MshNodeEnv, { logger } from '@beecode/msh-node-env'

const env = MshNodeEnv({ loggerStrategy: new logger.ConsoleLogger(logger.LogLevel.INFO) })

Readme

Keywords

none

Package Sidebar

Install

npm i @beecode/msh-node-log

Weekly Downloads

250

Version

2.2.3

License

mit

Unpacked Size

817 kB

Total Files

80

Last publish

Collaborators

  • milosbugarinovic