Package Exports
- @wdio/logger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wdio/logger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
WDIO Logger Utility
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.
Install
To install the package just call
npm install @wdio/loggeror when adding it to a WebdriverIO subpackage:
lerna add @wdio/logger --scope <subpackage>Usage
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.