Mastra.getLogger()
The .getLogger() method is used to retrieve the logger instance that has been configured in the Mastra instance.
Usage exampleDirect link to Usage example
mastra.getLogger()
ParametersDirect link to Parameters
This method doesn't accept any parameters.
ReturnsDirect link to Returns
logger:
TLogger
The configured logger instance used for logging across all components (agents, workflows, etc.).