3.0.1 • Published 3 months ago

@strg/logging-winston v3.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
3 months ago

Version npm Renovate Status License

@strg/logging-winston

This library provides a preconfigured winston logger that can be used in any typescript or node project it is based on winston3.

Getting Started

Prerequisites

Installing the library

npm install winston @strg/logging-winston

Using the client library

import {logger} from '@strg/logging-winston'

logger.info(`${'hello world'}`)

Error "cause"

For all errors with a parent "cause", messages and stacktrace will be displayed hierarchically.

const error = new Error('Child Error', { cause: new Error('Parent Error')})
logger.error(error) // will display stacktrace and original message for child and parent errors

ENV

DescriptionDefault
NODE_LOG_FORMATSIMPLE, JSONJSON
NODE_LOG_LEVELfatal, error, warn, info, trace, debuginfo
NODE_LOG_STACK_KEYthe key of the stacktrace (require NODE_LOG_FORMAT=JSON)stack_trace

Specification

This library aims to standarize the logging output in all node or typescript based applications.

Development

Testing

#TBD

Coverage Report

#TBD

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

3.0.1

3 months ago

2.0.13

2 years ago

2.0.12

2 years ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.11

2 years ago

2.0.7

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.0

4 years ago