Socket
Socket
Sign inDemoInstall

@kksiuda/log

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kksiuda/log

Logging for node.js


Version published
Maintainers
1
Created
Source

Overview

No dependency logging utility wrapper with customisable consumer

Installation

yarn install @kksiuda/log

or

npm install @kksiuda/log

API

Log

Creates a Log instance.

  • input
    • consumer?: LogConsumer (default: consoleLogConsumerFactory return value);
    • logLevel: LogLevel (default: 'info');
    • namespace: string[]; (default: [])
  • output

Example

import { Log } from '@kksiuda/logger';

const log = new Logger();
log.debug('debug data');
log.info('some information');
log.warn('warning');
log.error(new Error('error message'));
// by default these logs will be output to console using consoleLogConsumerFactory default parameters

FAQs

Package last updated on 22 Nov 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc