Initial commit of V2.

This commit is contained in:
Michael Teeuw
2016-03-24 17:19:32 +01:00
parent c428d6a985
commit 4266c0b279
235 changed files with 31730 additions and 246 deletions

28
js/logger.js Normal file
View File

@@ -0,0 +1,28 @@
/* 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);
}
};
})();