Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
build | 2 years ago | |
README.md | 2 years ago | |
package.json | 2 years ago |
A helper utility for logging of WebdriverIO packages
This package is used across all WebdriverIO packages to log information using the loglevel
package. It can also be used for any other arbitrary Node.js project.
To install the package just call
$ npm install @wdio/logger
or when adding it to a WebdriverIO subpackage:
$ lerna add @wdio/logger --scope <subpackage>
The package exposes a logger function that you can use to register an instance for your scoped package:
import logger from '@wdio/logger'
const log = logger('myPackage')
log.info('some logs')
For more info see loglevel
package on NPM.