Permalink
Browse files

Update demo

Fixed naming inconsistency issues related to package name change and added an
alternative way of handling boilerplate.
  • Loading branch information...
adrianp committed Mar 11, 2013
1 parent 0091a88 commit dac9cce851c7ab64adcc10095a1c10deaf7c4732
Showing with 10 additions and 3 deletions.
  1. +10 −3 demo.js
View
13 demo.js
@@ -1,6 +1,13 @@
-var simplog = require('./silog.js');
+var silog = require('./silog.js');
-simplog.setLevel(simplog.level.DEBUG);
+silog.setLevel(silog.level.DEBUG);
var TAG = 'silog_demo';
-simplog.log(simplog.level.DEBUG, TAG, 'Hello world!');
+silog.log(silog.level.DEBUG, TAG, 'Hello world!');
+
+function log(message) {
+ "use strict";
+ silog.log(silog.level.DEBUG, TAG, message);
+}
+
+log('Bye world!');

0 comments on commit dac9cce

Please sign in to comment.