Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy