56 lines
4.0 KiB
JavaScript
56 lines
4.0 KiB
JavaScript
/// <reference path="./typings/main.d.ts" />
|
|
"use strict";
|
|
var beautylog_log_helpers_1 = require("./beautylog.log.helpers");
|
|
var beautylog_log_helpers_2 = require("./beautylog.log.helpers");
|
|
exports.log = beautylog_log_helpers_2.log;
|
|
/**
|
|
* logs an info to console
|
|
* @param logText
|
|
* @returns {boolean}
|
|
*/
|
|
exports.info = function (logText) {
|
|
return beautylog_log_helpers_1.log(logText, 'info');
|
|
};
|
|
/**
|
|
* logs an 'OK!' message to console
|
|
* @param logText
|
|
* @returns {boolean}
|
|
*/
|
|
exports.ok = function (logText) {
|
|
return beautylog_log_helpers_1.log(logText, 'ok');
|
|
};
|
|
/**
|
|
* logs a success to console
|
|
* @param logText string to log as error
|
|
* @returns {boolean}
|
|
*/
|
|
exports.success = function (logText) {
|
|
return beautylog_log_helpers_1.log(logText, 'success');
|
|
};
|
|
/**
|
|
* logs a 'warn:' message to console
|
|
* @param logText string to log as error
|
|
* @returns {boolean}
|
|
*/
|
|
exports.warn = function (logText) {
|
|
return beautylog_log_helpers_1.log(logText, 'warn');
|
|
};
|
|
/**
|
|
* logs an error to console
|
|
* @param logText
|
|
* @returns {boolean}
|
|
*/
|
|
exports.error = function (logText) {
|
|
return beautylog_log_helpers_1.log(logText, 'error');
|
|
};
|
|
/**
|
|
* logs an directory to console
|
|
* @param logText
|
|
* @returns {boolean}
|
|
*/
|
|
exports.dir = function (logText) {
|
|
return beautylog_log_helpers_1.log(logText, 'dir');
|
|
};
|
|
|
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImJlYXV0eWxvZy5sb2cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNENBQTRDOztBQUU1QyxzQ0FBa0IseUJBQXlCLENBQUMsQ0FBQTtBQUM1QyxzQ0FBa0IseUJBQXlCLENBQUM7QUFBcEMsMENBQW9DO0FBRTVDOz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