Permalink
Browse files

add syntax highlight

  • Loading branch information...
1 parent d9f2629 commit 519a94acdcb10c5feb676573c9a267c86b1fae5f @firejune committed Aug 2, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.md
View
@@ -19,7 +19,7 @@ NPM
$ npm install clog
### Usage
-
+```javascript
var clog = require('clog');
clog('server', 'start listening on port 3000'); // custom head
@@ -31,9 +31,9 @@ NPM
clog.debug('headers', { // console.debug
'Content-Type': 'text/javascript'
});
-
+```
### Configure
-
+```javascript
// display level configration:
clog.configure({'log level': 2});
//=> {'log': true, 'info': true, 'warn': false, 'error': false, 'debug': false}
@@ -49,7 +49,7 @@ NPM
}
});
//=> {'log': true, 'info': true, 'warn': false, 'error': true, 'debug': false}
-
+```
### Output
![output](https://github.com/firejune/clog/raw/master/images/clog.png)

0 comments on commit 519a94a

Please sign in to comment.