Expand logger for debug (#60)

This commit is contained in:
Jaco Greeff
2018-01-09 19:51:24 +01:00
committed by GitHub
parent d1c414c1e0
commit feedcf62e8
4 changed files with 65 additions and 9 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ logger (type: string): Logger
```
Returns a `Logger` that has `.log`, `.error` and `.warn` methods. Loggins is done with a consistent prefix (type of logger, date) followed by the actual message uning the underlying console.
Returns a `Logger` that has `.log`, `.error`, `.warn` and `.debug` (constrolled with environment `DEBUG=typeA,typeB`) methods. Logging is done with a consistent prefix (type of logger, date) followed by the actual message using the underlying console.
```js
const l = require('@polkadot/util/logger')('test');