1.1.0 • Published 1 day ago

@beecode/msh-logger v1.1.0

Weekly downloads
-
License
mit
Repository
github
Last release
1 day ago

Build Status codecov GitHub license
NPM

msh-logger

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-logger

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) })
1.1.0

1 day ago

1.0.5

5 days ago

1.0.4

6 days ago

1.0.3

24 days ago

1.0.2

29 days ago

1.0.1

1 month ago

1.0.0

1 month ago

0.2.1

12 months ago

0.2.0-alpha

1 year ago