What is LogTape?
Sonamu provides structured logging using @logtape/logtape. Key features:- Category-based logging
- Various log levels (debug, info, warn, error, fatal)
- Custom Sink/Filter support
- Fastify integration
Basic Logging
Using getLogger
Log Levels
Logging Configuration
sonamu.config.ts Configuration
Disabling Logging
Category-Based Logging
Hierarchical Categories
Automatic Categories for Model/Frame
Sonamu automatically assigns categories to Models and Frames:Fastify Logging
API Request Logging
Sonamu automatically logs requests to/api paths:
Excluding Healthcheck
/api/healthcheck is automatically excluded from logging.