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

@ijx/logger

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ijx/logger

Logs manager

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Logger

Logs manager. Create log files and print in console.

Installation

Use the package manager npm to install Logger.

npm install @ijx/logger

List of Levels

  • INFO
  • DEBUG
  • WARN
  • ERROR
  • FATAL
  • HIST
  • TEST
  • TEST2
  • ALL

Example usage

// Import module
import Logger, { Level } from "@ijx/logger"

// Create variable with path
const logger = new Logger("./logs");

// Settings
logger
	.addLevelConsole(Level.HIST)
	.addLevelFile(Level.HIST)
	.addLevelConsole(Level.DEBUG, "INVOKER_B");

// Print your logs
logger.log(Level.INFO, "INVOKER_A", "message here 1");
logger.log(Level.DEBUG, "INVOKER_B", "message here 2");

Keywords

FAQs

Package last updated on 31 Dec 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