smartlog-destination-local/ts/beautylog.log.ts

58 lines
1.1 KiB
TypeScript
Raw Normal View History

2016-05-23 07:10:30 +00:00
import "typings-global";
2016-02-23 13:34:40 +00:00
2016-05-02 00:23:40 +00:00
import {log} from "./beautylog.log.helpers";
export {log} from "./beautylog.log.helpers";
2016-02-23 13:34:40 +00:00
/**
* logs an info to console
* @param logText
* @returns {boolean}
*/
2016-05-02 00:23:40 +00:00
export let info = function (logText) {
2016-02-23 13:34:40 +00:00
return log(logText, 'info');
};
/**
* logs an 'OK!' message to console
* @param logText
* @returns {boolean}
*/
2016-05-02 00:23:40 +00:00
export let ok = function (logText) {
2016-02-23 13:34:40 +00:00
return log(logText, 'ok');
};
/**
* logs a success to console
* @param logText string to log as error
* @returns {boolean}
*/
2016-05-02 00:23:40 +00:00
export let success = function (logText) {
2016-02-23 13:34:40 +00:00
return log(logText, 'success');
};
/**
* logs a 'warn:' message to console
* @param logText string to log as error
* @returns {boolean}
*/
2016-05-02 00:23:40 +00:00
export let warn = function (logText) {
2016-02-23 13:34:40 +00:00
return log(logText, 'warn');
2016-05-02 00:23:40 +00:00
};
/**
* logs an error to console
* @param logText
* @returns {boolean}
*/
export let error = function (logText) {
return log(logText, 'error');
};
/**
* logs an directory to console
* @param logText
* @returns {boolean}
*/
export let dir = function (logText) {
return log(logText, 'dir');
2016-02-23 13:34:40 +00:00
};