M
MastraAI3w ago
Zef

Workflow runId in logs

Hello everyone, I was wondering if you have to do anything special to get logs correctly annotated with the workflow run ID. I am using using the PinoLogger and whilst logs are working, none of the logs generated during a workflow run have a runId. This makes retrieving logs for a specific run impossible via the getLogsByRunId function. Thanks
2 Replies
_roamin_
_roamin_2w ago
Hi @Zef ! I believe if you set the logger level to debug you'll see the runId
logger: new PinoLogger({
name: 'Mastra',
level: 'debug',
}),
logger: new PinoLogger({
name: 'Mastra',
level: 'debug',
}),
Zef
ZefOP2w ago
Amazing that worked thank you!

Did you find this page helpful?