Setup Logging for your service
Integrate Logdash with your preferred SDK. Your dashboard will update automatically when you send logs.
1. Install the Logdash SDK
npm install @logdash/js-sdk
2. Send logs to your service
import { createLogDash } from '@logdash/js-sdk';
const { logger } = createLogDash({
apiKey: "m4F6IfudsqoexU6FG7eIq5DAzGzksYNa"
});
logger.info("Application started successfully")
logger.error("An unexpected error occurred")
logger.warn("Low disk space warning")
3. Claim your service
Waiting for logs...