@loan-risk/logger
v1.0.1
Published
Reusable TypeScript logger package for the loan risk analyzer ecosystem
Maintainers
Readme
@loan-risk/logger
Reusable TypeScript logger package for the loan risk analyzer ecosystem.
Installation
pnpm add @loan-risk/loggerFeatures
- Info logging
- Warning logging
- Error logging
- Debug logging
- Lightweight TypeScript API
Usage
import { Logger } from "@loan-risk/logger";
const logger = new Logger({
debug: true,
});
logger.info("Application started");
logger.warn("Warning message");
logger.error("Something failed");
logger.debug("Debug details");Example
[INFO] Application started
[WARN] Warning message
[ERROR] Something failedLicense
MIT
