Skip to content

npx-bin/logger-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logger-web

A logging utility for the web!

Installation:

npm i logger-web

Usage:

import { Logger } from 'logger-web';
(or)
const Logger = require("logger-web").Logger;
(or)
const { Logger } = require("logger-web");
Logger.info("some info text . . .");
Logger.log("some log text . . .");
Logger.warn("some warning text . . .");
Logger.debug("some debug text . . .");

Turn on/off the logging in browser: In the browser's console, type the following:

Logger.enable(); // For enabling the logging
Logger.disable(); // For disabling the logging
Logger.isEnabled(); // For checking if the logging is enabled