roarr
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -17,3 +17,3 @@ { | ||
}, | ||
"description": "Roarr.", | ||
"description": "JSON logger for Node.js.", | ||
"devDependencies": { | ||
@@ -43,3 +43,5 @@ "ava": "^0.22.0", | ||
"keywords": [ | ||
"log" | ||
"log", | ||
"logger", | ||
"json" | ||
], | ||
@@ -71,3 +73,3 @@ "main": "./dist/log.js", | ||
}, | ||
"version": "1.0.0" | ||
} | ||
"version": "1.1.0" | ||
} |
@@ -9,3 +9,3 @@ # Roarr | ||
Roarr. | ||
JSON logger for Node.js. | ||
@@ -59,10 +59,12 @@ * [Usage](#usage) | ||
To put it in words: | ||
Put it into words: | ||
1. First parameter can be either a string (message) or an object. | ||
* If first parameter is an object (context), the second parameter must be a string (message). | ||
2. Arguments after the message parameter are used to enable [printf message formatting](https://en.wikipedia.org/wiki/Printf_format_string). | ||
1. Arguments after the message parameter are used to enable [printf message formatting](https://en.wikipedia.org/wiki/Printf_format_string). | ||
* Printf arguments must be of a primitive type (`string | number | boolean | null`). | ||
* There can be up to 9 printf arguments (or 8 if the first parameter is the context object). | ||
<!-- --> | ||
```js | ||
@@ -69,0 +71,0 @@ import log from 'roarr'; |
22038
206