Skip to content

WiDuMu/logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logging

A simple drop-in re-export of the JavaScript console class, which only runs if you set logging.enabled = true.

I use this for certain projects to toggle logging. It makes it easy to disable or renable my code's logging features when hunting bugs.

Example

import logging from 'https://raw.githubusercontent.com/WiDuMu/logging/main/dist/logging.js'

logging.enabled = true;

logging.log(`Hello World!`);

About

A simple logging system.

Resources

Stars

Watchers

Forks