mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
29 lines
502 B
JavaScript
29 lines
502 B
JavaScript
|
/* global console */
|
||
|
/* exported Log */
|
||
|
|
||
|
/* Magic Mirror
|
||
|
* Logger
|
||
|
*
|
||
|
* By Michael Teeuw http://michaelteeuw.nl
|
||
|
* MIT Licensed.
|
||
|
*/
|
||
|
|
||
|
|
||
|
// This logger is very simple, but needs to be extended.
|
||
|
// This system can eventually be used to push the log messages to an external target.
|
||
|
|
||
|
|
||
|
var Log = (function() {
|
||
|
return {
|
||
|
info: function(message) {
|
||
|
console.info(message);
|
||
|
},
|
||
|
log: function(message) {
|
||
|
console.log(message);
|
||
|
},
|
||
|
error: function(message) {
|
||
|
console.error(message);
|
||
|
}
|
||
|
};
|
||
|
})();
|