Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-logging-system

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-logging-system

A simple JS Logging system written in TypeScript

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
203
decreased by-32.11%
Maintainers
1
Weekly downloads
 
Created
Source

Simple logging system

This is a simple JavaScript logging system written in TypeScript.

By default, it outputs content to the console. However, it can be easily customized to output somewhere else.

This project can be a base to build a more complex logging system like SLF4J/Logback in Java.

Usage

const logger = new Logger('MyComponent');
logger.info('Hello world');

It supports multiple arguments:

const logger = new Logger('MyComponent');
try {
  throw new Error('Oops');
} catch (e) {
  logger.error('An error ocurred!', e);
}

Release process

  1. run npm login
  2. run npm run release <= yarn must not be used

Keywords

FAQs

Package last updated on 15 Jul 2021

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