In this article
Find the destination before searching for messages
Start with the app’s own diagnostics or support instructions if it supplies them. A vendor may write a separate application log regardless of what launchd does. For a traditional LaunchAgent plist you can inspect, use Terminal to read the configuration without running its program:
plutil -p "/path/to/example.plist"
Replace the placeholder with the actual file. Look for the exact Label, the executable in Program or ProgramArguments, and the two output-path keys. A plist filename is not necessarily the service label. Avoid guessing a path from the app’s marketing name.
The Mac’s installed man launchd.plist describes StandardOutPath as the destination for standard output and StandardErrorPath as the destination for standard error. Each can create its output file when it does not exist. Neither key means “capture everything this app ever logs.” An application can write neither stream, maintain its own file, or use the system’s logging facilities.
Apple’s archived guide to creating launchd jobs includes output redirection in its debugging example. It is a useful model, but use the manuals installed on your Mac for current command details.
Read the registered job, not just the file
For an agent in your graphical login session, substitute its actual label in:
launchctl print "gui/$(id -u)/com.example.helper"
For a system daemon, the domain is system, so the inspection form is launchctl print "system/com.example.helper". This reads state; it does not start or stop the job. A lookup failure in one domain does not prove the service is absent everywhere.
Compare any displayed stdout and stderr paths with the plist you inspected. If they differ, you may be looking at a different registration or at a file changed after the service was loaded. Changing text on disk is not proof that the running service adopted it.
Read state, run count and exit information together. A short task can finish correctly and then show not running. Conversely, accepting a registration does not guarantee that its executable began. Our LaunchAgent file versus running-job guide explains that distinction in more detail.
Four controlled results on one Mac
We tested four disposable user agents on macOS 15.7.5, build 24G624, on November 5, 2026. Each used /bin/sh, RunAtLoad, an absolute output path and a separate marker file created at the beginning of its script. No existing service was changed. All four test registrations were removed afterward.
| Test configuration | Script marker | Output files | Observed result |
|---|---|---|---|
| Existing log directory; script writes to both streams | Created | Both contain their expected marker | Normal output capture |
| Log directory initially absent; otherwise the same script | Created | Directory and both logs created | Missing directory alone did not fail on this Mac |
| Existing directory; script writes neither stream | Created | Both exist, zero bytes | Successful execution can produce empty logs |
| A regular file occupies the intended directory path | Absent | Neither log created | Registered job reported exit 78, EX_CONFIG |
The fourth test matters because launchctl bootstrap returned success, yet the script’s first instruction did not run. The output path could not be traversed as a directory. The missing stderr file could not explain its own failure.
The second test also matters: do not assume a missing parent directory always causes failure. This Mac created it. That observation does not establish behavior for every macOS release, external volume, ownership arrangement or managed deployment. Check what happened on the actual machine instead of treating a checklist item as a universal diagnosis.
Exit 78 is evidence to investigate, not a unique fingerprint for this path problem. Other configuration failures can produce the same code. We isolated the path cause by changing only that part of our disposable setup and checking an independent execution marker.
Inspect the exact path without “fixing” permissions
Once you know the configured path, inspect its parent and the file separately. For an example location:
ls -ld "/path/to/log-directory"checks the directory entry, ownership and permissions.ls -l "/path/to/log-directory/output.log"checks the output file.tail -n 50 "/path/to/log-directory/output.log"reads its recent contents if it exists.
Retain quotes around paths. Confirm that a supposed directory is actually a directory, and that an external volume is mounted at the expected location. A path accessible to your Terminal session is not, by itself, proof that another process can access it under the same conditions.
Do not respond to an unexplained result with recursive permission changes, a switch to root, or broad privacy grants. Identify the owning app and consult its supported repair procedure. If the component is unfamiliar, trace the background item to its owner before making changes.
Empty output may belong in Console instead
When the configured file exists but remains empty, ask whether the program writes that stream at all. Output may also be buffered, so the absence of new bytes at one instant is weaker evidence than a completed controlled run.
For system log messages, open Console, select your Mac and click Start. Reproduce the specific app action, then narrow the view to the process or relevant message. Apple documents this workflow in View log messages in Console. Console and redirected stdout/stderr are different evidence sources; an empty result in one is not a complete history of the other.
If a scheduled task never reached its trigger, there may be no new output to read. Check the difference between launchd schedules during sleep before interpreting silence as a logging defect.
For a support report, record the macOS version, service label and domain, configured output paths, observation time, exit information, and whether the task’s expected result appeared. Remove private paths and message contents before sharing. That gives the maintainer a specific state to diagnose instead of only “the log is missing.”


