Daemon logging and Snow Leopard

View: New views
1 Messages — Rating Filter:   Alert me  

Daemon logging and Snow Leopard

by Thomas Clement :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It seems there are some inconsistencies about daemon logging on Snow Leopard:
- asl(3) logs to the log database and system.log
- NSLog logs only to system.log
- printf logs nowhere


The documentation states that NSLog uses asl(3), however these logs do not appear in the log database.

Also the "Daemons and Agents" tech note states:
Logging With printf
In Mac OS X 10.5 and later, launchd will capture any output to stdout and stderr and redirect it to ASL.

However I fail to see any printf reaching the log database or even system.log.
Why is that?


Thanks,
Thomas

_______________________________________________
launchd-dev mailing list
launchd-dev@...
http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev