2.0.1 • Published 7 years ago
log4-aws-lambda v2.0.1
log4-aws-lambda
log4 log writer for AWS Lambda environment
- Printf-like message formatting
- Configure log level visbility threshold through
LOG_LEVELenv variable (defaults tonotice) - Extra debug output can be controlled via
LOG_DEBUGenv variable (fallbacks toDEBUGif provided) - Object inspection depth defaults to
4, but can be overriden viaLOG_INSPECT_DEPTH(fallbacks toDEBUG_DEPTHif provided) - Writes logs via
console.error(notprocess.stderr) to ensure logs are accompanied in CloudWatch by AWS prefixes
Usage
At beginning of main module of your program invoke:
require("log4-aws-lambda")();Tests
$ npm test