raincloud-logger
v1.0.4
Published
Raincloud is a simple logger which formats your logs according to the incredible AWS Cloudwatch standard.
Maintainers
Readme
Raincloud Logger
Finally, a logger that will format your logs according to the great standards of AWS cloudwatch.
Very minimal. Perfect to use for Log Insights.
Features
- Structured Cloudwatch JSON logs
- Supports multiple log levels:
debug,info,warn,error - Lightweight
Installation
npm install raincloud-loggeror with Yarn:
yarn add raincloud-loggerUsage
TypeScript / JavaScript
import { createLogger } from "raincloud-logger";
const logger = createLogger({ serviceName: "my-service" });
logger.debug("Debugging info");
logger.info("App started", { port: 3000 });
logger.warn("Something might be wrong", { userId: 123 });
logger.error("Unexpected error occurred", { error: new Error("Oops") });Output Example
{
"level": "info",
"timestamp": "2025-10-09T12:00:00.000Z",
"service": "my-service",
"message": "App started",
"port": 3000
}License
MIT
