@baselime/lambda-logger
Advanced tools
+1
-1
| { | ||
| "name": "@baselime/lambda-logger", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "description": "An opinionated logger for AWS Lambda", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+13
-2
| ## AWS Lambda Logging Library for Node.js | ||
| This library provides an easy-to-use logging solution for AWS Lambda functions built with Node.js. It provides an object with four logging functions - `info`, `warn`, `debug`, and `error` - which can be used to log messages at different levels of severity. The visibility of the logs can be controlled by setting the `LOG_LEVEL` environment variable. It's an extremely simple library with 0 dependencies that just wraps console.log with some helpful defaults. | ||
| This library provides an easy-to-use logging solution for AWS Lambda functions built with Node.js. | ||
| ```javascript | ||
| const { logger } = require('@baselime/lambda-logger'); | ||
| logger.info('This is an informational message', { | ||
| operation: 'copy-paste-replace', | ||
| count: 9000 | ||
| }); | ||
| ``` | ||
| It provides an object with four logging functions - `info`, `warn`, `debug`, and `error` - which can be used to log messages at different levels of severity. The visibility of the logs can be controlled by setting the `LOG_LEVEL` environment variable. It's an extremely simple library with 0 dependencies that just wraps console.log with some helpful defaults. | ||
| ### Installation | ||
@@ -82,2 +93,2 @@ | ||
| This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. | ||
| This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
11145
1.66%94
14.63%