Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@obi-tec/logger-console

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@obi-tec/logger-console

A simple library write log for Lambda Applications with Cloudwatch logs.

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
397
53.88%
Maintainers
3
Weekly downloads
 
Created
Source

Logger Console

A simple library write log for Lambda Applications with Cloudwatch logs.

Installation

npm install @obi-tec/logger-console

Usage

const logger = require('@obi-tec/logger-console');

logger.info('Some log info');

const details = {
    otherMessage: 'Some other message'
};
logger.info('Some log info with details', details);

Change log level

To change the log level is used the environment variable process.env.LOG_LEVEL

The default value is info

Options:

LOG_LEVEL="debug"
LOG_LEVEL="info"
LOG_LEVEL="warn"
LOG_LEVEL="error"
LOG_LEVEL="request"
LOG_LEVEL="none"

Keywords

logger

FAQs

Package last updated on 16 Aug 2024

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