# @jitsi/logger

> A simple npm utility module for logging

Latest version **2.1.1** (published 2025-09-16) · 0 weekly downloads

## Install

```sh
npm install @jitsi/logger
pnpm add @jitsi/logger
yarn add @jitsi/logger
bun add @jitsi/logger
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2025-09-16 |
| First published | 2021-11-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 35.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Hristo Terezov |
| Maintainers | hristoterezov, gpolitis, yanas, jitsiorg, saghul, mihhu, jallamsetty, andrei.gavrilescu, damencho, calinteodor |
| Keywords | javascript, logging, simple |

## Links

- npm: https://www.npmjs.com/package/@jitsi/logger
- Repository: https://github.com/jitsi/jitsi-meet-logger
- Homepage: https://github.com/jitsi/jitsi-meet-logger#readme
- Issues: http://github.com/jitsi/jitsi-meet-logger/issues
- npm.io page: https://npm.io/package/@jitsi/logger

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 2.1.1 (latest) — 2025-09-16
- 2.0.2 — 2023-08-24
- 2.0.1 — 2022-02-17
- 2.0.0 — 2021-11-10

## README

# 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.

---
_Source: https://npm.io/package/@jitsi/logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
