Logging in the console
Hey folks, moving the discussion here to avoid spamming general.
What's the easiest path logging HTTP requests emitted by Mastra agents? As a default the playground would log traces but the LLM call seems tied to a "getMostRecentUserMessage" event which only shows the model message, not the full HTTP request. A log drain should work but I don't see docs for a console drain, and as a default on a new app I don't see logs in the console. The default recommended logger is Pino which I think will stick to outputting JSON data and not HTTP requests. The lack of HTTP logging is the #1 pain point I feel when using anything that wraps HTTP requests (looking at n8n namely
huge pain to debug) and I'd be eager to get rid of this issue in Mastra's context.
Using mastra@latest (11.0.3 alpha) the log drain is not recognized despite Pino being set up. What is the expected behaviour, having logs in the console ?
What's the easiest path logging HTTP requests emitted by Mastra agents? As a default the playground would log traces but the LLM call seems tied to a "getMostRecentUserMessage" event which only shows the model message, not the full HTTP request. A log drain should work but I don't see docs for a console drain, and as a default on a new app I don't see logs in the console. The default recommended logger is Pino which I think will stick to outputting JSON data and not HTTP requests. The lack of HTTP logging is the #1 pain point I feel when using anything that wraps HTTP requests (looking at n8n namely
Using mastra@latest (11.0.3 alpha) the log drain is not recognized despite Pino being set up. What is the expected behaviour, having logs in the console ?