smartdebug/ts/test.ts

10 lines
382 B
TypeScript
Raw Normal View History

2015-11-17 01:29:18 +00:00
/// <reference path="typings/tsd.d.ts" />
2015-11-16 00:50:28 +00:00
var smartDebug = require("./index.js");
2015-11-17 01:29:18 +00:00
var bl = require("beautylog")("os");
2015-11-16 00:50:28 +00:00
2015-11-17 01:29:18 +00:00
smartDebug.log("This message is not shown");
2015-11-22 06:59:34 +00:00
bl.log("debug.status() is " + smartDebug.getStatus() );
2015-11-16 00:50:28 +00:00
smartDebug.activate(true);
2015-11-17 01:29:18 +00:00
smartDebug.log("This debug message is shown");
2015-11-22 06:59:34 +00:00
bl.log("debug.status() is " + smartDebug.getStatus() );
2015-11-17 01:29:18 +00:00
bl.success("Test successfull");