1.0.8 • Published 7 years ago

debugger_js v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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)

Kind: global function

ParamTypeDescription
optsobjectAn object containg the possible options for this function
opts.logStylestringThe style of logging this logType will generate. Possible values: log, warn, error, info. Default value: 'log'
opts.textColorstringThe text color this logType will generate. Default value: '#000' (Black)
opts.backgroundColorstringThe background color this logType will generate. Default value: '#fff' (white)

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

Kind: global function

ParamTypeDescription
optsobjectAn object containg the possible options for this function
opts.logTypesobjectA collection of logTypes created by the logType function
opts.debugModesstringA 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.loggingstringAn 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.
1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago