🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

imergo-logger

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imergo-logger

Generic winston logger wrapper for our imergo-frameworks.

latest
npmnpm
Version
9.0.2
Version published
Maintainers
1
Created
Source

imergo-logger

NPM Version Node

This module is a generic winston logger wrapper for our imergo-frameworks. It is a globally configurable logger via environment variables, with default values.

Install

npm install imergo-logger

Usage

import Logger from "imergo-logger"
const logger = Logger(label | config)
logger.error("This is an error message")

Where:

  • label: standard descriptive string
  • config: standard winston configuration object

Environment variables

VariableDescriptionDefault
NODE_DEBUGComma-separated list of module names to be debugged (it accepts wildcards)None
NODE_IMERGO_LOGCONSOLEWhen false, it deactivates shell loggingtrue
NODE_IMERGO_LOGDIRDirectory where to store logs$HOME/.logs in POSIX systems or %USERPROFILE%\.logs in Windows
NODE_IMERGO_LOGFILEName of the log fileimergo.log

Testing

npm test

Documentation

To install the documentation locally, run:

npm run doc

Available online at: https://health-open.pages.fraunhofer.de/imergo-logger/

FAQs

Package last updated on 19 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts