screwdriver-logger
v2.0.0
Published
Provides common logger for Screwdriver components
Downloads
444
Readme
screwdriver-logger
Wrapper around winston for a common logging interface for Screwdriver repos
Usage
npm install screwdriver-logger
This module wraps the winston package and provides a simple uniform interface for handling logs.
const logger = require('screwdriver-logger');
try {
// Do something
return logger.info('Server running at %s', server.info.uri);
} catch (err) {
logger.error(err.toString());
return process.exit(1);
}
Testing
npm test
License
Code licensed under the BSD 3-Clause license. See LICENSE file for terms.