Update lighthouse-logger location in readme (#2867)

This commit is contained in:
Mike Smith 2017-08-07 20:27:35 +01:00 коммит произвёл Paul Irish
Родитель 9d8a32f5fe
Коммит 1347b15d26
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);