2.2.3 • Published 3 years ago

@beecode/msh-node-log v2.2.3

Weekly downloads
208
License
mit
Repository
github
Last release
3 years ago

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

3 years ago

2.2.2

3 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.2-alpha

4 years ago

2.0.2

4 years ago

2.0.1-alpha

4 years ago

2.0.0-alpha

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.3-alpha

4 years ago

1.0.4

4 years ago

1.0.4-alpha

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago