Expand logger for debug (#60)
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user