@strg/logging-winston

pre defined and formated error log configuration for Winston 3

Usage no npm install needed!

<script type="module">
  import strgLoggingWinston from 'https://cdn.skypack.dev/@strg/logging-winston';
</script>

README

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'}`)

ENV

Description Default
NODE_LOG_FORMAT SIMPLE, JSON JSON
NODE_LOG_LEVEL fatal, error, warn, info, trace, debug info
NODE_LOG_STACK_KEY the 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