2015-09-26 18:46:16 +00:00
|
|
|
/// <reference path="./typings/tsd.d.ts" />
|
2015-11-01 21:00:07 +00:00
|
|
|
var beautyLogOs = require('./index.js')("os");
|
|
|
|
var beautyLogBrowser = require("./index.js")("browser");
|
2015-11-15 05:15:20 +00:00
|
|
|
console.log('*** start OS console test ***');
|
2015-09-26 18:46:16 +00:00
|
|
|
console.log('');
|
|
|
|
console.log('declarative function calls:');
|
2015-11-01 21:00:07 +00:00
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, without logType');
|
|
|
|
beautyLogOs.dir('beautylog.dir(), with normal logText, without logType');
|
|
|
|
beautyLogOs.error('beautylog.error(), with normal logText, without logType');
|
|
|
|
beautyLogOs.info('beautylog.dir(), with normal logText, without logType');
|
|
|
|
beautyLogOs.ok('beautylog.ok(), with normal logText, without logType');
|
|
|
|
beautyLogOs.success('beautylog.success(), with normal logText, without logType');
|
|
|
|
beautyLogOs.warn('beautylog.warn(), with normal logText, without logType');
|
2015-09-26 18:46:16 +00:00
|
|
|
console.log('');
|
|
|
|
console.log('logType String:');
|
2015-11-01 21:00:07 +00:00
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, without logType');
|
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, with logType "dir"', 'dir');
|
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, with logType "error"', 'error');
|
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, with logType "info"', 'info');
|
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, with logType "ok"', 'ok');
|
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, with logType "success"', 'success');
|
|
|
|
beautyLogOs.log('beautylog.log(), with normal logText, with logType "warn"', 'warn');
|
2015-09-26 18:46:16 +00:00
|
|
|
console.log('');
|
2015-11-15 05:15:20 +00:00
|
|
|
console.log('*** end OS console test ***');
|
|
|
|
console.log("*** start browser console test (Might look weird in OS console and travis log...) ***");
|
2015-11-01 21:07:29 +00:00
|
|
|
beautyLogBrowser.log("hello");
|
2015-11-15 05:15:20 +00:00
|
|
|
console.log("*** end browser console test ***");
|
|
|
|
console.log("*** start table test ***");
|
2015-12-20 22:14:22 +00:00
|
|
|
(function () {
|
|
|
|
var testTable1 = beautyLogOs.table.new("checks");
|
|
|
|
testTable1.push(['check1', 'success']);
|
|
|
|
testTable1.push(['check2', 'error']);
|
|
|
|
testTable1.push(['check3', 'error']);
|
|
|
|
testTable1.print();
|
|
|
|
var testTable2 = beautyLogOs.table.new("custom", ["Column1".red, "Column2".blue, "Column3".cyan]);
|
|
|
|
testTable2.push(["Hey", "this", "works"]);
|
|
|
|
testTable2.print();
|
|
|
|
})();
|
2015-11-15 05:15:20 +00:00
|
|
|
console.log("*** end table test ***");
|