Skip to content
Browse files

change example code

  • Loading branch information...
1 parent dd5eb71 commit 5fce2da6d34df5713f1798efc09cdbf7a241c5ff @firejune committed Sep 9, 2011
Showing with 15 additions and 15 deletions.
  1. +8 −8 README.md
  2. BIN images/clog.png
  3. +7 −7 test.js
View
16 README.md
@@ -21,14 +21,14 @@ NPM
var clog = require('clog');
- clog('response', 'hello', 'world'); // custom head
-
- clog.log('Hi!'); // console.log
- clog.info(['foo', 'bar']); // console.info
- clog.warn('baz is deprecated.'); // console.warn
- clog.error('HTTP/1.1 400 Bad Request'); // console.error
- clog.debug('headers', { // console.debug
- 'Content-Type': 'text/javascript'
+ clog('server', 'start listening on port 3000'); // custom head
+
+ clog.log('hello', 'world'); // console.log
+ clog.info(['foo', 'bar']); // console.info
+ clog.warn('baz is deprecated.'); // console.warn
+ clog.error('HTTP/1.1 400 Bad Request'); // console.error
+ clog.debug('headers', { // console.debug
+ 'Content-Type': 'text/javascript'
});
### Output
View
BIN images/clog.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
14 test.js
@@ -1,11 +1,11 @@
var clog = require('./lib/clog');
-clog('response', 'hello', 'world'); // custom head
+clog('server', 'start listening on port 3000'); // custom head
-clog.log('Hi!'); // console.log
-clog.info(['foo', 'bar']); // console.info
-clog.warn('baz is deprecated.'); // console.warn
-clog.error('HTTP/1.1 400 Bad Request'); // console.error
-clog.debug('headers', { // console.debug
- 'Content-Type': 'text/javascript'
+clog.log('hello', 'world'); // console.log
+clog.info(['foo', 'bar']); // console.info
+clog.warn('baz is deprecated.'); // console.warn
+clog.error('HTTP/1.1 400 Bad Request'); // console.error
+clog.debug('headers', { // console.debug
+ 'Content-Type': 'text/javascript'
});

0 comments on commit 5fce2da

Please sign in to comment.
Something went wrong with that request. Please try again.