2014-08-28 00:16:43 +08:00
|
|
|
|
|
|
|
(function(window, undefined) {
|
|
|
|
|
|
|
|
var BBBLog = {};
|
|
|
|
|
2015-02-18 08:09:10 +08:00
|
|
|
BBBLog.critical = function (message, data) {
|
|
|
|
console.log(message, JSON.stringify(data));
|
|
|
|
}
|
|
|
|
|
|
|
|
BBBLog.error = function (message, data) {
|
|
|
|
console.log(message, JSON.stringify(data));
|
2014-08-28 00:16:43 +08:00
|
|
|
}
|
|
|
|
|
2015-02-18 08:09:10 +08:00
|
|
|
BBBLog.warning = function (message, data) {
|
|
|
|
console.log(message, JSON.stringify(data));
|
|
|
|
}
|
|
|
|
|
|
|
|
BBBLog.info = function (message, data) {
|
|
|
|
console.log(message, JSON.stringify(data));
|
|
|
|
}
|
|
|
|
|
|
|
|
BBBLog.debug = function (message, data) {
|
|
|
|
console.log(message, JSON.stringify(data));
|
|
|
|
}
|
|
|
|
|
2014-08-28 00:16:43 +08:00
|
|
|
window.BBBLog = BBBLog;
|
|
|
|
})(this);
|
|
|
|
|