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

@jitsi/logger

Package Overview
Dependencies
Maintainers
10
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jitsi/logger

A simple npm utility module for logging

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
increased by0.35%
Maintainers
10
Weekly downloads
 
Created
Source

Jitsi Meet Logger

Jitsi Meet Logger is utility library for logging used in Jitsi Meet project. It doesn't have any dependencies or any specific Jitsi Meet code.

Getting Started

  • In order to be able to log you should first create a Logger instance:
var Logger = require("@jitsi/logger");
var logger = Logger.getLogger();
  • This instance is wrapper for the console object. We support the following logging methods which at the end will execute the same method from the console object:
    • trace
    • debug
    • info
    • log
    • warn
    • error
    logger.log(1, "2", {"3": 4}, [5, 6, 7]);
  • You can set the log level for all Logger instances. That way you can prevent the log messages with lower log level to be displayed.
logger.setLogLevel(Logger.levels.INFO);

This is the list of supported log levels(ordered):

  1. TRACE
  2. DEBUG
  3. INFO
  4. LOG
  5. WARN
  6. ERROR

For example if the log level is set to Logger.levels.INFO only messages with the following log levels are going to be displayed - info, log, warn and error.

Keywords

FAQs

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