How do I activate launchd logging on OS X 10.6?
I added a new daemon that is not starting properly (status is
I want to debug the problem but I was not able to find
launchd logs, they are not in
I found the solution
and after this
assuming you're trying to log your process rather than launchd itself, if you include the following lines in the launchd plist file:
and reload the process, any logging or printing that you have internal to your script will be captured in one of those two files whenever it is run. though rotating the files appears to be up to you. as you might expect, if you use the same file in both instances, it will log both error and stdout to the same place.