New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tinylogger-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinylogger-js

A Tiny and Basic Logging API for JavaScript/TypeScript.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

TinyLogger

A Tiny and Basic Logging API for JavaScript/TypeScript.

Usage

The logger can be accessed by importing Logger from TinyLogger. It can serve 3 logging methods:

  • logConsoleOnly: This will log to the NodeJS console only.
  • logFileOnly: This will log it to a file located under <execution_path>/logs.
  • logAll: This logs to both console AND a file.

The logger has 4 types of logging information in form of an enum called LogType. It has the values: "INFO", "WARN", "ERROR", "FATAL". You can get the package from Node Package Manager (NPM) via the command: npm i tinylogger.

Keywords

logger

FAQs

Package last updated on 22 Aug 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