跳到主要内容
非官方简体中文翻译,内容版权归 Mastra 所有,遵循 Apache-2.0 许可。

Mastra.getLogger()

The .getLogger() method is used to retrieve the logger instance that has been configured in the Mastra instance.

Usage example
Usage example的直接链接

mastra.getLogger()

Parameters
Parameters的直接链接

This method doesn't accept any parameters.

Returns
Returns的直接链接

logger:

TLogger
The configured logger instance used for logging across all components (agents, workflows, etc.).
On this page