@mastra/loggers 1.3.0 → 1.3.1-alpha.1
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/LICENSE.md +6 -4
- package/README.md +40 -105
- package/dist/docs/SKILL.md +5 -5
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-observability-logging.md +1 -1
- package/dist/docs/references/reference-core-mastra-class.md +1 -1
- package/dist/file/index.d.ts.map +1 -1
- package/dist/http/index.d.ts.map +1 -1
- package/dist/pino.d.ts.map +1 -1
- package/dist/upstash/index.d.ts.map +1 -1
- package/package.json +6 -7
- package/CHANGELOG.md +0 -2542
package/LICENSE.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Portions of this software are licensed as follows:
|
|
2
2
|
|
|
3
|
-
- All content that resides under any directory named
|
|
3
|
+
- All content that resides under any directory named `ee/` within this
|
|
4
4
|
repository, including but not limited to:
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
|
|
5
|
+
- `@mastra/core/auth/ee`
|
|
6
|
+
- `@mastra/core/agent-builder/ee`
|
|
7
|
+
- `@mastra/editor/ee`
|
|
8
|
+
|
|
9
|
+
is licensed under the license defined in [`ee/LICENSE`](https://github.com/mastra-ai/mastra/blob/main/ee/LICENSE).
|
|
8
10
|
|
|
9
11
|
- All third-party components incorporated into the Mastra Software are
|
|
10
12
|
licensed under the original license provided by the owner of the
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mastra/loggers
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Logger and logging transport implementations for Mastra. The package includes a structured Pino logger plus file, HTTP, and Upstash transports that extend `LoggerTransport` from `@mastra/core/logger`.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -8,138 +8,73 @@ A collection of logging transport implementations for Mastra, extending the `Log
|
|
|
8
8
|
npm install @mastra/loggers
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Usage
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
A transport that writes logs to a local file system.
|
|
13
|
+
Create a logger with one or more named transports and pass it to Mastra:
|
|
16
14
|
|
|
17
15
|
```typescript
|
|
18
|
-
import {
|
|
16
|
+
import { Logger } from '@mastra/core/logger';
|
|
17
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
18
|
+
import { FileTransport } from '@mastra/loggers/file';
|
|
19
|
+
import { UpstashTransport } from '@mastra/loggers/upstash';
|
|
19
20
|
|
|
20
|
-
const
|
|
21
|
-
|
|
21
|
+
const logger = new Logger({
|
|
22
|
+
transports: [
|
|
23
|
+
new FileTransport({ path: '/var/log/my-app.log' }),
|
|
24
|
+
new UpstashTransport({
|
|
25
|
+
upstashUrl: process.env.UPSTASH_URL!,
|
|
26
|
+
upstashToken: process.env.UPSTASH_TOKEN!,
|
|
27
|
+
}),
|
|
28
|
+
],
|
|
22
29
|
});
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
#### Configuration
|
|
26
|
-
|
|
27
|
-
- `path`: Absolute path to the log file (must exist)
|
|
28
|
-
|
|
29
|
-
#### Features
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
- Automatic stream cleanup
|
|
33
|
-
- JSON log parsing
|
|
34
|
-
- Query logs by run ID
|
|
35
|
-
- Stream-based implementation
|
|
36
|
-
|
|
37
|
-
### Upstash Transport
|
|
38
|
-
|
|
39
|
-
A transport that sends logs to Upstash Redis with batching and auto-trimming capabilities.
|
|
40
|
-
|
|
41
|
-
```typescript
|
|
42
|
-
import { UpstashTransport } from '@mastra/loggers';
|
|
43
|
-
|
|
44
|
-
const upstashLogger = new UpstashTransport({
|
|
45
|
-
upstashUrl: 'https://your-instance.upstash.io',
|
|
46
|
-
upstashToken: 'your-token',
|
|
47
|
-
listName: 'application-logs', // optional
|
|
48
|
-
maxListLength: 10000, // optional
|
|
49
|
-
batchSize: 100, // optional
|
|
50
|
-
flushInterval: 10000, // optional
|
|
51
|
-
});
|
|
31
|
+
export const mastra = new Mastra({ logger });
|
|
52
32
|
```
|
|
53
33
|
|
|
54
|
-
|
|
34
|
+
## Documentation
|
|
55
35
|
|
|
56
|
-
|
|
36
|
+
### Logger
|
|
57
37
|
|
|
58
|
-
|
|
59
|
-
- `upstashToken`: Your Upstash authentication token
|
|
38
|
+
`Logger` combines one or more `LoggerTransport` implementations and can be passed directly to the Mastra configuration. It supports standard log levels and sends each structured log record to the configured transports, which can persist, batch, or forward the data to external systems.
|
|
60
39
|
|
|
61
|
-
|
|
40
|
+
### File transport
|
|
62
41
|
|
|
63
|
-
|
|
64
|
-
- `maxListLength`: Maximum number of logs to keep (default: 10000)
|
|
65
|
-
- `batchSize`: Number of logs to send in one batch (default: 100)
|
|
66
|
-
- `flushInterval`: Milliseconds between flush attempts (default: 10000)
|
|
42
|
+
`FileTransport` appends structured logs to an existing local file. It can list logs, query by run ID, stream records, and clean up the underlying write stream when destroyed.
|
|
67
43
|
|
|
68
|
-
|
|
44
|
+
```typescript
|
|
45
|
+
import { FileTransport } from '@mastra/loggers/file';
|
|
69
46
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
- Automatic retry on failure
|
|
74
|
-
- Query logs by run ID
|
|
75
|
-
- JSON log formatting
|
|
76
|
-
- Timestamp auto-injection
|
|
77
|
-
- Graceful shutdown with final flush
|
|
47
|
+
const fileTransport = new FileTransport({ path: '/var/log/my-app.log' });
|
|
48
|
+
const runLogs = await fileTransport.listLogsByRunId({ runId: 'run-123' });
|
|
49
|
+
```
|
|
78
50
|
|
|
79
|
-
|
|
51
|
+
### Upstash transport
|
|
80
52
|
|
|
81
|
-
|
|
53
|
+
`UpstashTransport` batches logs into an Upstash Redis list. Configure the instance URL and token, then optionally set the list name, maximum retained list length, batch size, and flush interval. It trims old records, retries failed batches, and performs a final flush during shutdown.
|
|
82
54
|
|
|
83
55
|
```typescript
|
|
84
|
-
import {
|
|
85
|
-
import { FileTransport, UpstashTransport } from '@mastra/loggers';
|
|
86
|
-
|
|
87
|
-
// Create transports
|
|
88
|
-
const fileTransport = new FileTransport({
|
|
89
|
-
path: '/var/log/app.log',
|
|
90
|
-
});
|
|
56
|
+
import { UpstashTransport } from '@mastra/loggers/upstash';
|
|
91
57
|
|
|
92
58
|
const upstashTransport = new UpstashTransport({
|
|
93
59
|
upstashUrl: process.env.UPSTASH_URL!,
|
|
94
60
|
upstashToken: process.env.UPSTASH_TOKEN!,
|
|
61
|
+
listName: 'application-logs',
|
|
62
|
+
maxListLength: 10_000,
|
|
63
|
+
batchSize: 100,
|
|
64
|
+
flushInterval: 10_000,
|
|
95
65
|
});
|
|
96
|
-
|
|
97
|
-
// Create logger with multiple transports
|
|
98
|
-
const logger = new Logger({
|
|
99
|
-
transports: [fileTransport, upstashTransport],
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
// Log messages
|
|
103
|
-
logger.info('Hello world', { metadata: 'value' });
|
|
104
|
-
|
|
105
|
-
// Query logs
|
|
106
|
-
const allLogs = await fileTransport.listLogs();
|
|
107
|
-
const runLogs = await upstashTransport.listLogsByRunId({ runId: 'abc-123' });
|
|
108
66
|
```
|
|
109
67
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
Both transports handle log messages in JSON format with the following structure:
|
|
113
|
-
|
|
114
|
-
```typescript
|
|
115
|
-
interface BaseLogMessage {
|
|
116
|
-
time?: number; // Timestamp (auto-injected if not present)
|
|
117
|
-
level?: string; // Log level
|
|
118
|
-
msg?: {
|
|
119
|
-
// Message content
|
|
120
|
-
runId?: string; // Optional run ID for grouping logs
|
|
121
|
-
[key: string]: any;
|
|
122
|
-
};
|
|
123
|
-
[key: string]: any;
|
|
124
|
-
}
|
|
125
|
-
```
|
|
68
|
+
### HTTP transport
|
|
126
69
|
|
|
127
|
-
|
|
70
|
+
`HttpTransport` sends batches of structured log records to an HTTP endpoint and supports request headers, batching, retry, and flush configuration. Use it for application-specific collectors and hosted logging gateways.
|
|
128
71
|
|
|
129
|
-
|
|
72
|
+
- [`PinoLogger` reference](https://mastra.ai/reference/logging/pino-logger)
|
|
130
73
|
|
|
131
|
-
|
|
132
|
-
- Validates file path existence
|
|
133
|
-
- Handles stream errors
|
|
134
|
-
- Graceful cleanup on destroy
|
|
74
|
+
## Changelog
|
|
135
75
|
|
|
136
|
-
-
|
|
137
|
-
- Validates required configuration
|
|
138
|
-
- Retries failed batches
|
|
139
|
-
- Buffers logs during outages
|
|
140
|
-
- Graceful shutdown with final flush
|
|
76
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/packages/loggers/CHANGELOG.md) for version history and release notes.
|
|
141
77
|
|
|
142
|
-
##
|
|
78
|
+
## Support
|
|
143
79
|
|
|
144
|
-
|
|
145
|
-
- [Node.js Stream Documentation](https://nodejs.org/api/stream.html)
|
|
80
|
+
We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -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.
|
|
6
|
+
version: "1.3.1-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -16,13 +16,13 @@ Read the individual reference documents for detailed explanations and code examp
|
|
|
16
16
|
|
|
17
17
|
### Docs
|
|
18
18
|
|
|
19
|
-
- [Logging](references/docs-observability-logging.md) -
|
|
19
|
+
- [Logging](references/docs-observability-logging.md) - Configure structured Mastra logging with PinoLogger, trace correlation, observability storage, custom logger adapters, log levels, and query APIs.
|
|
20
20
|
|
|
21
21
|
### Reference
|
|
22
22
|
|
|
23
|
-
- [Reference: Mastra class](references/reference-core-mastra-class.md) -
|
|
24
|
-
- [Logger](references/reference-file-based-agents-logger.md) -
|
|
25
|
-
- [Reference: PinoLogger](references/reference-logging-pino-logger.md) -
|
|
23
|
+
- [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.
|
|
24
|
+
- [Logger](references/reference-file-based-agents-logger.md) - Mastra sets the project's logger from a logger.ts file directly under src/mastra/.
|
|
25
|
+
- [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.
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
|
|
@@ -78,7 +78,7 @@ export const mastra = new Mastra({
|
|
|
78
78
|
|
|
79
79
|
### Custom loggers
|
|
80
80
|
|
|
81
|
-
Custom `IMastraLogger` implementations keep working: Mastra
|
|
81
|
+
Custom `IMastraLogger` implementations keep working: Mastra uses a deprecated dual-write fallback that forwards log calls to observability without adding `trace_id` or `span_id` to the logger's native output. To get trace-correlated output, implement the `__attachObservability()` adapter hook from `@mastra/core/logger`:
|
|
82
82
|
|
|
83
83
|
```typescript
|
|
84
84
|
import { MastraLogger, buildLogRecordData } from '@mastra/core/logger'
|
|
@@ -73,7 +73,7 @@ Visit the [Configuration reference](https://mastra.ai/reference/configuration) f
|
|
|
73
73
|
|
|
74
74
|
**observability** (`ObservabilityEntrypoint`): Observability configuration for tracing and monitoring
|
|
75
75
|
|
|
76
|
-
**environment** (`string`): Deployment environment name (e.g. production, staging, development). When set, automatically attached to all observability signals so they can be filtered by environment without passing tracingOptions.metadata.environment on each call.
|
|
76
|
+
**environment** (`string`): Deployment environment name (e.g. production, staging, development). When set, automatically attached to all observability signals so they can be filtered by environment without passing tracingOptions.metadata.environment on each call. When unset, resolves to development for mastra dev runs, then falls back to process.env.NODE\_ENV; left undefined if none are set. Per-call tracingOptions.metadata.environment always takes precedence.
|
|
77
77
|
|
|
78
78
|
**deployer** (`MastraDeployer`): An instance of a MastraDeployer for managing deployments.
|
|
79
79
|
|
package/dist/file/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,qBAAa,aAAc,SAAQ,eAAe;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,qBAAa,aAAc,SAAQ,eAAe;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,WAAW,CAAC;IACxB,YAAY,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAUrC;IAED,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,QAO5F;IAED,MAAM,CAAC,QAAQ,EAAE,QAAQ,QAKxB;IAED,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,GAAG,OAAO,CAUxF;IAGD,QAAQ,CAAC,KAAK,EAAE,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-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,OAAO,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,qBAAa,aAAc,SAAQ,eAAe;IAChD,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,YAAY,CAAyB;IAC7C,OAAO,CAAC,SAAS,CAAmB;IACpC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,eAAe,CAAiB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpE,UAAU,YAAY;IACpB,UAAU,CAAC,EAA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
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
8
|
-
"CHANGELOG.md"
|
|
7
|
+
"dist"
|
|
9
8
|
],
|
|
10
9
|
"homepage": "https://mastra.ai",
|
|
11
10
|
"repository": {
|
|
@@ -75,11 +74,11 @@
|
|
|
75
74
|
"eslint": "^10.7.0",
|
|
76
75
|
"tsdown": "0.22.9",
|
|
77
76
|
"tsx": "^4.23.1",
|
|
78
|
-
"typescript": "^
|
|
77
|
+
"typescript": "^7.0.2",
|
|
79
78
|
"vitest": "4.1.10",
|
|
80
|
-
"@internal/
|
|
81
|
-
"@internal/
|
|
82
|
-
"@mastra/core": "1.
|
|
79
|
+
"@internal/types-builder": "0.0.104",
|
|
80
|
+
"@internal/lint": "0.0.129",
|
|
81
|
+
"@mastra/core": "1.64.0-alpha.7"
|
|
83
82
|
},
|
|
84
83
|
"peerDependencies": {
|
|
85
84
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|