---
name: mastra-loggers
description: Documentation for @mastra/loggers. Use when working with @mastra/loggers APIs, configuration, or implementation.
metadata:
  package: "@mastra/loggers"
  version: "1.3.2"
---

## When to use

Use this skill whenever you are working with @mastra/loggers to obtain the domain-specific knowledge.

## How to use

Read the individual reference documents for detailed explanations and code examples.

### Docs

- [Logging](references/docs-observability-logging.md) - Configure structured Mastra logging with PinoLogger, trace correlation, observability storage, custom logger adapters, log levels, and query APIs.

### Reference

- [Reference: Mastra class](references/reference-core-mastra-class.md) - The Mastra class is the central orchestrator in any Mastra application, managing agents, workflows, storage, logging, observability, and more.
- [Logger](references/reference-file-based-agents-logger.md) - Mastra sets the project's logger from a logger.ts file directly under src/mastra/.
- [Reference: PinoLogger](references/reference-logging-pino-logger.md) - A Logger instance is created using new PinoLogger() and provides methods to record events at severity levels.


Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.