Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed some words

  • Loading branch information...
commit bdf389632d6b09e1e83de81276fc123479236804 1 parent 4e649e0
LI Long authored
Showing with 11 additions and 7 deletions.
  1. +11 −7 README.md
18 README.md
View
@@ -22,29 +22,27 @@ Usage
-----
Add to your code:
+Simple Console
```javascript
var logger = require('tracer').console();
```
+Color Console
```javascript
var logger = require('tracer').colorConsole();
```
-
+Set Output Level
```javascript
-var logger = require('tracer').colorConsole({level:2});
+var logger = require('tracer').colorConsole({level:'warn'});
```
Simple Example
--------------
-some helper package is need, so install -dev for running examples
-```javascript
-npm install -dev tracer
-```
### Simple Console
@@ -79,6 +77,12 @@ logger.error('hello %s %d %j', 'world', 123, {foo:'bar'}, [1, 2, 3, 4], Object);
Advanced Example
---------------
+some helper package is need, so install -dev for running examples
+
+```javascript
+npm install -dev tracer
+```
+
Take a look at the examples directory for different examples.
@@ -130,7 +134,7 @@ format tag:
* stack: call stack
-About [Date Format](http://blog.stevenlevithan.com/archives/date-time-format)
+About [Tim micro-template](https://github.com/premasagar/tim) and [Date Format](http://blog.stevenlevithan.com/archives/date-time-format)
```javascript
var logger = require('tracer').console(
Please sign in to comment.
Something went wrong with that request. Please try again.