@gdrl/mastra-logging
v0.2.0
Published
Generic Mastra agent run logging helpers
Downloads
152
Readme
@gdrl/mastra-logging
Generic Mastra agent run logging helpers.
This package owns the agent lifecycle hook, event normalization, and optional pricing calculation. Apps remain responsible for:
- extracting any context they care about from
RequestContext - mapping normalized runs into their own storage shape
- persisting records in their own database
The intended usage pattern is:
- create one logging client for the app
- create an app-local
Agentclass viacreateLoggedAgentClass - define agents with
new Agent({ ..., logging: ... }) - invoke agents normally with
.generate()/.stream()/.network()
