-
Notifications
You must be signed in to change notification settings - Fork 0
Standardize service log file locations #1155
Copy link
Copy link
Open
Labels
complexity:mediumMedium scope: <200 lines, 1-2 filesMedium scope: <200 lines, 1-2 filesenhancementNew feature or requestNew feature or requesttriagedIssue has been triaged, ready for planning or implementationIssue has been triaged, ready for planning or implementation
Milestone
Metadata
Metadata
Assignees
Labels
complexity:mediumMedium scope: <200 lines, 1-2 filesMedium scope: <200 lines, 1-2 filesenhancementNew feature or requestNew feature or requesttriagedIssue has been triaged, ready for planning or implementationIssue has been triaged, ready for planning or implementation
Summary
Service log file paths are currently defined only in launchd plist files with no convention that tooling can programmatically discover. Standardize log locations so diagnostic tools, the MCP server, and operators can reliably find them.
Problem
Log paths are currently:
contrib/plists/*.plistasStandardOutPath/StandardErrorPath/usr/local/var/log/agentd-<service>.{log,err}This means the MCP diagnostic tools, CLI, and any future monitoring have no way to find logs for a crashed service.
Proposed Solution
Standardize on a single convention and make it discoverable:
Standard path:
~/Library/Application Support/agentd-<service>/service.{log,err}(or keep/usr/local/var/log/but make it a constant)Make it discoverable via one or more of:
agentd-commonthat all services and tools import/log-pathendpoint on each service's health router (only useful when the service is up)Update plists to use the standardized paths
Acceptance Criteria
agentd-commonexports a function to resolve the log path for a given service name