fullstack-build / tslog

📝 tslog - Universal Logger for TypeScript and JavaScript
https://tslog.js.org
MIT License
1.35k stars 63 forks source link

Feature Request: Add stronger types to transport #292

Open nahtnam opened 5 months ago

nahtnam commented 5 months ago

Description / Use Case for a Feature

I know that logs can generally be in multiple formats, but it seems like _meta is always available in attachTransport. Additionally, I'm trying to automatically capture exceptions into Sentry. So far I'm just loosely checking if nativeError is attached and if so I send that to sentry. Would be nice if that can be more strongly typed as one of the formats of attachTransport