Skip to content

mfasman95/debuggerjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

debugger_js

A small utility library for logging front end javascript code.

{logType} - A function to create a valid logType to be used when making a logger(opts)
{makeLogger} - A function to create a debug logger(opts)

{logType} - A function to create a valid logType to be used when making a logger(opts)

Kind: global function

Param Type Description
opts object An object containg the possible options for this function
opts.logStyle string The style of logging this logType will generate. Possible values: log, warn, error, info. Default value: 'log'
opts.textColor string The text color this logType will generate. Default value: '#000' (Black)
opts.backgroundColor string The background color this logType will generate. Default value: '#fff' (white)

{makeLogger} - A function to create a debug logger(opts)

Kind: global function

Param Type Description
opts object An object containg the possible options for this function
opts.logTypes object A collection of logTypes created by the logType function
opts.debugModes string A collection of key value pairs where every key is a logType, and every value is a boolean whether or not that logType is being displayed. If no debugModes are provided, opts.logging will automatically be set to 'logNone'.
opts.logging string An optional parameter to set what will be logged. Possible values include 'logAll', 'logNone'. All other values will default to using the debugModes. logAll will log all debug messages, regardless of debugMode. logNone will log no debug messages, regardless of debugMode.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published