INGESTKOREA Utility Lambda Log Handler for Node.js.
npm install @ingestkorea/util-lambda-logger
- Use TypeScript v5.x
npm install -D typescript # save dev mode
// ES5 example
const { lambdaLogger } = require("@ingestkorea/util-lambda-logger");
// ES6+ example
import { lambdaLogger } from "@ingestkorea/util-lambda-logger";
Async/await
// Set Label, Message
import { lambdaLogger, LambdaLoggerInput } from "@ingestkorea/util-lambda-logger";
(async () => {
let params: LambdaLoggerInput = {
label: "INFO", // optional "INFO" | "ERROR"
message: "hello world", // required Object | String
};
await lambdaLogger(params);
})();
This Utility is distributed under the MIT License, see LICENSE for more information.