colorful-logger

0.1.3 • Public • Published

by: saitodisse

colorful-logger

colorful console.log

bower

bower install colorful-logger --save

npm

npm install colorful-logger --save

configure on AMD

require.config({
    // The shim config allows us to configure dependencies for
    // scripts that do not call define() to register a module
    shim: {
        ColorfulLogger: {
            deps: ['lodash']
        }
    },
    paths: {
        lodash: '../bower_components/lodash/dist/lodash',
        ColorfulLogger: '../bower_components/colorful-logger/src/colorful-logger'
    }
});

call

define([
    'ColorfulLogger'
], function (ColorfulLogger) {
    var logger = new ColorfulLogger.Logger();
 
    // a simple usage, not fun
    logger.log('Welcome to Meld Trace Logger');
 
    // here it is a green colored message
    logger.log({
        message: 'this message must be green',
        css: 'color: #0A0'
    });
});

tests

install buster

sudo npm i buster -g

run buster-test

buster-test

Package Sidebar

Install

npm i colorful-logger

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • saitodisse