Update lighthouse-logger location in readme (#2867)
This commit is contained in:
Родитель
9d8a32f5fe
Коммит
1347b15d26
|
@ -43,12 +43,12 @@ You can also craft your own config (e.g. [plots-config.js](https://github.com/Go
|
|||
|
||||
### Turn on logging
|
||||
|
||||
If you want to see log output as Lighthouse runs, include the `log` module
|
||||
If you want to see log output as Lighthouse runs, include the `lighthouse-logger` module
|
||||
and set an appropriate logging level in your code. You'll also need to pass
|
||||
the `logLevel` flag when calling `lighthouse`.
|
||||
|
||||
```javascript
|
||||
const log = require('lighthouse/lighthouse-core/lib/log');
|
||||
const log = require('lighthouse-logger');
|
||||
|
||||
const flags = {logLevel: 'info', output: 'json'};
|
||||
log.setLevel(flags.logLevel);
|
||||
|
|
Загрузка…
Ссылка в новой задаче