site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Resent-date: Tue, 19 Oct 2004 20:40:11 +0200 Resent-from: Damien Bobillot <damien.bobillot.2002+applelist@m4x.org> Resent-message-id: <D0990D84-21FD-11D9-B60C-000A959E9418@m4x.org> Resent-to: darwin-dev@lists.apple.com Le 19 oct. 04, à 15:31, stephane sudre a écrit : Is there any global API to log information into a .log file. You should use the syslog API. See "man syslog", "man syslogd" and "man syslog.conf" for more details. -- Damien Bobillot _______________________________________________ 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... Logging information in system.log is easy. But from what I'm seeing in netinfo-324.6 for instance, there seems to be no global API to create .log files. Am I missing something? In a nutshell, you ask the system to log a message for a given priority (alert, warning, debug…) and type (auth, kernel, ftp, daemon…). According to the syslog configuration (/etc/syslog.conf), the messages are redirected to .log files in /var/log/. This email sent to site_archiver@lists.apple.com
participants (1)
-
Damien Bobillot