Skip to content

Commit

Permalink
Add a very basic logger for arethusa
Browse files Browse the repository at this point in the history
This duplicates the console.log behaviour. We will still use this for
debugging purposes, but for logs we want others to see too we will use
the arethusaLogger. Jshint won't complain then - and we can still let
it track any forgotten console log statements.
  • Loading branch information
LFDM committed May 11, 2014
1 parent fa0be08 commit 33e895c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<script src="../vendor/mm-foundation/mm-foundation-tpls-0.1.0.min.js"></script>

<script src="./js/arethusa_util.js"></script>
<script src="./js/arethusa_logger.js"></script>

<script src="./js/arethusa.core.js"></script>
<script src="./js/arethusa.core/main_ctrl.controller.js"></script>
Expand Down
9 changes: 9 additions & 0 deletions app/js/arethusa_logger.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"use strict";

/* global console */
/* exported arethusaLogger */
var arethusaLogger = {
log: function(msg) {
console.log(msg);
},
};

0 comments on commit 33e895c

Please sign in to comment.