Skip to content

osugregor/loggy-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

loggy-js

A simple JavaScript library for logging.

Installation

Load the loggy.js file before your JS code.

<script type="text/javascript" src="loggy.js"></script>

How to use

Instantiate a new logger like so:

var LOGGER = new Loggy.init(Loggy.DEBUG);

passing in the log level (DEBUG,INFO,ERROR) to indicate what to print to console

Use the newly created variable to print to console:

LOGGER.debug("Message to debug");

About

A simple JavaScript library for logging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published