npm install log-logbash
$ npm install log-log
`Examples
Ready to go
`js
var LogLog = require('log-log');
var log = LogLog.create();log.debug("Debug some stuff");
`
Simple demo
`js
var log = LogLog.create({applicationName: "Demo", color: LogLog.COLORS.CYAN});log.debug("Hello!");
log.changeColor(LogLog.COLORS.DEFAULT);
log.error("Sample error");
log.warning("Sample warning");
log.success("Sample success");
log.test("Sample test");
`
!exampleCreating a new instance
$3
* logOptions Object used to pass a few logging options, all properties are optional
* applicationName Name given to your LogLog instance, useful to distinguish classes and objects
* color You can access available colors from LogLog.COLORS object
* dim Default set to false, useful if you don't want logs to stand out too muchcreate will return a Logs instance. This object will have the following methodsMethods
$3
* message {String | Object}
* [depthLevel] {Number} OptionalWhen passing objects they get stringified
$3
* message {String | Object}When passing objects they get stringified
$3
Will affect only .debug messages$3
Boolean returned$3
* level {Number}You can specify debug depth level in order to filter unwanted deep debug messages
$3
* color {String}You can access available colors from
LogLog.COLORS` object