@rtcio/logger
v0.1.2
Published
A P2P connection library aimed to make RTCPeerConnections easier to use
Downloads
12
Readme
@rtcio/logger
Description
This is a thin wrapper around the debug library. You may install if you wish, but it's mostly for internal use with the @rtcio ecosystem
Installation
npm i @rtcio/loggerUsage
import Logger from "@rtcio/logger";
const logger = new Logger(
"@npmnamespace:npmpackage",
"SomeClass",
"instanceIdOfClass",
);
logger.log("Something happened here");
logger.error("Oh no, what happened?");
logger.warn("I'm not sure, we should figure it out");
logger.verbose("Y'all talk too much.");