I created a small logger for small project & serverless, opinions welcome
npmjs.com·16h·
Discuss: r/node
Flag this post

Hi all,

I created a small logger interface for TS & JS projects, which I use mostly for small services, projects, and serverless applications.

The goal was to have a small, almost/no overhead generic implementation, that has no unused features, slim, and able to work with other logging packages (like Winston, Pino).

My use-cases: -An IoT project where the Winston package exists and log rotation is configured - A serverless project that logs to CloudWatch - A project that runs in a cron job - Inspired by PHP's PSR-3 LoggerInterface - I did not want anything that has dozens of files with features that are rarely or never needed - A TypeScript interface for extensibility - JS support - Avoiding plain `console.log` - Open source

Similar Posts

Loading similar posts...