Permalink
Browse files

logging at "minimal api" example

  • Loading branch information...
1 parent 34a9f43 commit b05e9e3d472c613cd6237798d5118841c542fb4f @mvrilo committed Dec 11, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 examples/minimal-hello-world.js
View
5 examples/minimal-hello-world.js
@@ -1,5 +1,6 @@
-var f = require('../lib/frank'), server = f(),
- get = server.get, run = server.run;
+var f = require('../lib/frank').createServer(),
+ get = f.get, log = f.log, run = f.run;
get('/').send('minimal api ftw');
+log('tiny');
run(8000);

0 comments on commit b05e9e3

Please sign in to comment.