@mastra/loggers
Advanced tools
| { | ||
| "version": "1.1.2", | ||
| "version": "1.1.3-alpha.0", | ||
| "package": "@mastra/loggers", | ||
@@ -4,0 +4,0 @@ "exports": {}, |
@@ -27,3 +27,3 @@ # Logging | ||
| When [observability](https://mastra.ai/docs/observability/overview) is configured, all logger calls are automatically forwarded to your observability storage. This means every `debug`, `info`, `warn`, `error`, and `trackException` call from your application and from Mastra's internal components appears alongside your traces. | ||
| When [observability](https://mastra.ai/docs/observability/overview) is configured, all logger calls are automatically forwarded to your observability storage. This means every `debug`, `info`, `warn`, `error`, and `trackException` call from your application and from Mastra's internal components is stored alongside your traces. | ||
@@ -30,0 +30,0 @@ No code changes are required. Mastra wraps the configured logger so that it writes to both the original logger (console, file, or custom transport) and the observability system simultaneously. |
@@ -30,2 +30,20 @@ # Mastra class | ||
| Enable scheduled notification dispatch when deferred notification records and notification summaries should be delivered automatically through the workflow scheduler: | ||
| ```typescript | ||
| export const mastra = new Mastra({ | ||
| agents: { supportAgent }, | ||
| storage, | ||
| notifications: { | ||
| dispatch: { | ||
| enabled: true, | ||
| cron: '*/1 * * * *', | ||
| batchSize: 100, | ||
| }, | ||
| }, | ||
| }) | ||
| ``` | ||
| `notifications.dispatch.enabled` registers an internal workflow with the default cron `*/1 * * * *`. The dispatcher reads due notification records from storage, groups summaries by `agentId`, `resourceId`, and `threadId`, and emits signals through the agent thread runtime. It isn't a user-facing entrypoint. | ||
| ## Constructor parameters | ||
@@ -71,2 +89,12 @@ | ||
| **notifications** (`object`): Runtime configuration for notification signal dispatch. | ||
| **notifications.dispatch** (`NotificationDispatchConfig`): Scheduled dispatch configuration for deferred notifications and notification summaries. Dispatch is enabled by default. | ||
| **notifications.dispatch.enabled** (`boolean`): Set to \`false\` to opt out of automatic scheduled notification dispatch. | ||
| **notifications.dispatch.cron** (`string`): Cron schedule used by the internal notification dispatcher workflow. | ||
| **notifications.dispatch.batchSize** (`number`): Maximum number of due notification records to process per dispatch run. | ||
| **versions** (`VersionOverrides`): Global version overrides for sub-agent delegation. When a supervisor agent delegates to a sub-agent, these overrides determine which stored version of that sub-agent to use instead of the code-defined default. Requires the editor package to be configured. See \[Sub-agent versioning]\(/docs/editor/overview#sub-agent-versioning) for details. | ||
@@ -73,0 +101,0 @@ |
@@ -6,3 +6,3 @@ --- | ||
| package: "@mastra/loggers" | ||
| version: "1.1.2" | ||
| version: "1.1.3-alpha.0" | ||
| --- | ||
@@ -9,0 +9,0 @@ |
+10
-9
| { | ||
| "name": "@mastra/loggers", | ||
| "version": "1.1.2", | ||
| "version": "1.1.3-alpha.0", | ||
| "description": "", | ||
@@ -72,12 +72,13 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@types/node": "22.19.15", | ||
| "@vitest/coverage-v8": "4.1.5", | ||
| "@vitest/ui": "4.1.5", | ||
| "eslint": "^10.2.1", | ||
| "@types/node": "22.19.21", | ||
| "@vitest/coverage-v8": "4.1.8", | ||
| "@vitest/ui": "4.1.8", | ||
| "eslint": "^10.4.1", | ||
| "tsup": "^8.5.1", | ||
| "tsx": "^4.22.4", | ||
| "typescript": "^6.0.3", | ||
| "vitest": "4.1.5", | ||
| "@internal/lint": "0.0.100", | ||
| "@internal/types-builder": "0.0.75", | ||
| "@mastra/core": "1.38.0" | ||
| "vitest": "4.1.8", | ||
| "@internal/types-builder": "0.0.80", | ||
| "@internal/lint": "0.0.105", | ||
| "@mastra/core": "1.43.1-alpha.0" | ||
| }, | ||
@@ -84,0 +85,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
315789
0.6%11
10%1
Infinity%