@mastra/loggers 1.3.0-alpha.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @mastra/loggers
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - `PinoLogger` now implements the Mastra logger adapter contract. During traced operations, a pino mixin injects `trace_id` and `span_id` into every native log record (stdout, files, and custom transports), and the observability log export is derived from the same record. User-supplied `mixin` fields are preserved, with trace fields taking precedence on conflict. ([#21753](https://github.com/mastra-ai/mastra/pull/21753))
8
+
9
+ ```typescript
10
+ import { Mastra } from '@mastra/core/mastra';
11
+ import { PinoLogger } from '@mastra/loggers';
12
+
13
+ export const mastra = new Mastra({
14
+ logger: new PinoLogger({ name: 'Mastra', level: 'info' }),
15
+ });
16
+
17
+ // During a traced run, stdout lines carry matching trace context:
18
+ // {"level":30,"name":"Mastra","trace_id":"0af7651916cd43dd8448eb211c80319c","span_id":"b7ad6b7169203331","msg":"tool executed"}
19
+ ```
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`7176362`](https://github.com/mastra-ai/mastra/commit/717636281a3339911a05ea2cc8ae38afe4fd2cef), [`9045b8f`](https://github.com/mastra-ai/mastra/commit/9045b8fdf622e1d735b96ddd6500bd32556636d9), [`7677a2c`](https://github.com/mastra-ai/mastra/commit/7677a2cd47729221ca28afc5067d26e22d925b59), [`e3b796d`](https://github.com/mastra-ai/mastra/commit/e3b796d29a63f0d5c97dd815aadec40687346d70), [`f7a7467`](https://github.com/mastra-ai/mastra/commit/f7a74678193921e7ea4790232d707b3237626cac), [`49ccd14`](https://github.com/mastra-ai/mastra/commit/49ccd142268a61fb55ea75bc76287643a21f3677), [`f9c56f3`](https://github.com/mastra-ai/mastra/commit/f9c56f336ee8c250763a438990f8e60a428353c9), [`3855b38`](https://github.com/mastra-ai/mastra/commit/3855b38c4c25af32ab8e298e148becc963abe92c)]:
24
+ - @mastra/core@1.63.0
25
+
3
26
  ## 1.3.0-alpha.0
4
27
 
5
28
  ### Minor Changes
@@ -3,7 +3,7 @@ name: mastra-loggers
3
3
  description: Documentation for @mastra/loggers. Use when working with @mastra/loggers APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/loggers"
6
- version: "1.3.0-alpha.0"
6
+ version: "1.3.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0-alpha.0",
2
+ "version": "1.3.0",
3
3
  "package": "@mastra/loggers",
4
4
  "exports": {},
5
5
  "modules": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/loggers",
3
- "version": "1.3.0-alpha.0",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -77,9 +77,9 @@
77
77
  "tsx": "^4.23.1",
78
78
  "typescript": "^6.0.3",
79
79
  "vitest": "4.1.10",
80
- "@internal/types-builder": "0.0.101",
81
- "@internal/lint": "0.0.126",
82
- "@mastra/core": "1.63.0-alpha.0"
80
+ "@internal/lint": "0.0.127",
81
+ "@internal/types-builder": "0.0.102",
82
+ "@mastra/core": "1.63.0"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@mastra/core": ">=1.0.0-0 <2.0.0-0"