How to use the node-color-log.info function in node-color-log

To help you get started, we’ve selected a few node-color-log examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github weather-bot / WxKitty / test / lib / firebase.spec.js View on Github external
(async () => {
            const url = `http://example.com/${Math.floor(Math.random()*100)}`;

            logger.info("test dbWrite");
            const input = {
                url: url
            };
            const res = await dbWrite('tests/url', input);
            assert.equal(res.url, url);

            logger.info("test dbRead");
            const data = await dbRead('tests/url');
            assert.equal(data.url, url);

            logger.info("test dbRead null");
            const dataNull = await dbRead('testNull');
            assert.equal(dataNull, null);

            done();
        })();
    }).timeout(5000);
github weather-bot / WxKitty / test / lib / firebase.spec.js View on Github external
(async () => {
            const url = `http://example.com/${Math.floor(Math.random()*100)}`;

            logger.info("test dbWrite");
            const input = {
                url: url
            };
            const res = await dbWrite('tests/url', input);
            assert.equal(res.url, url);

            logger.info("test dbRead");
            const data = await dbRead('tests/url');
            assert.equal(data.url, url);

            logger.info("test dbRead null");
            const dataNull = await dbRead('testNull');
            assert.equal(dataNull, null);

            done();
        })();
    }).timeout(5000);
github weather-bot / WxKitty / test / lib / firebase.spec.js View on Github external
(async () => {
            const url = `http://example.com/${Math.floor(Math.random()*100)}`;

            logger.info("test dbWrite");
            const input = {
                url: url
            };
            const res = await dbWrite('tests/url', input);
            assert.equal(res.url, url);

            logger.info("test dbRead");
            const data = await dbRead('tests/url');
            assert.equal(data.url, url);

            logger.info("test dbRead null");
            const dataNull = await dbRead('testNull');
            assert.equal(dataNull, null);

            done();
        })();

node-color-log

The more powerful JavaScript logger for NodeJS and browsers.

MIT
Latest version published 6 months ago

Package Health Score

73 / 100
Full package analysis

Popular node-color-log functions