Re: syslogging to a customized .log file without messing with syslog.conf
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On mercredi, février 1, 2006, at 08:45 PM, Jordan K. Hubbard wrote: Probably because I need to be 10.2 compatible. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Why do you need to use the deprecated syslog(3) APIs for this? If you use asl(3), the new logging facility, you can either dispense with the notion of a customized log file entirely since asl(3) allows you to tag your messages with arbitrary keys that allow them to be easily pulled out of the central log data store later, or if you really want logging to a separate file, you can use asl_add_log_file() along with the standard asl logging APIs to get what you want. See asl(3). Just out of curiosity, is there a darwin tool using asl? It could prove interesting to see how this shall be used. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephane Sudre