Skip to content

A simple wrapper for console.log and console.dir created for learning purposes.

Notifications You must be signed in to change notification settings

ameshkin/am-simple-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIMPLE LOGGER

A simple wrapper to use instead of console.dir() and console.log()

HOW TO USE

Run npm install to install the package and use the example below for usage.

import Log from 'am-simple-log'

// set this universally
var debug = true;

var testobj = {"test":"Object"};

/**
 * USAGE
 * @param str     Error Messae
 * @param line    Line Number of Error
 * @param debug   Debug Flag  
 */

Log.err("Test Log Message","100",debug);
Log.err(testobj,"102",debug);

About

A simple wrapper for console.log and console.dir created for learning purposes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published