Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jitsi/logger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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
consoleobject. We support the following logging methods which at the end will execute the same method from theconsoleobject:- 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):
- TRACE
- DEBUG
- INFO
- LOG
- WARN
- 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.