From b7a1b23415169e1ded917bb6095967ee57297e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 14 Mar 2005 16:27:04 +0000 Subject: [PATCH] Added a brief description of the syslog functions I had laying around here. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11734 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- docs/user/support/syslog.dox | 62 ++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 docs/user/support/syslog.dox diff --git a/docs/user/support/syslog.dox b/docs/user/support/syslog.dox new file mode 100644 index 0000000000..07ea8eff82 --- /dev/null +++ b/docs/user/support/syslog.dox @@ -0,0 +1,62 @@ +/** \file syslog.h +\brief System logging capabilities + +The functions described here are interacting with the syslog_daemon, a server +that provides the system logging capabilities. +The log can be found in /var/log/syslog. +*/ + +/** \fn void closelog(void) +\brief Closes the current log session +*/ + +/** \fn void openlog(const char *ident, int options, int facility) +\brief Starts a log session, and sets some output options + +Like openlog_thread() this function defines the log session in thread context; the +global options set by openlog_team() are not affected by this function. +*/ + +/** \fn int setlogmask(int priorityMask) +\brief sets the logging priority mask +*/ + +/** \fn void syslog(int priority, const char *message, ...) +\brief sends a message to the system log +*/ + +/** \fn void closelog_team(void) +\brief Closes the log +*/ + +/** \fn void openlog_team(const char *ident, int logopt, int facility) +\brief Starts a log session, and sets some output options + +This function defines the team-wide logging options. Thread local sessions +started with openlog() or openlog_thread() will inherit the options of the +global session. +*/ + +/** \fn void log_team(int priority, const char *message, ...) +\brief sends a message to the system log +*/ + +/** \fn int setlogmask_team(int priorityMask) +\brief sets the logging priority mask +*/ + +/** \fn void closelog_thread(void) +\brief Closes the log +*/ + +/** \fn void openlog_thread(const char *ident, int logopt, int facility) +\brief Starts a log session, and sets some output options +*/ + +/** \fn void log_thread(int priority, const char *message, ...) +\brief sends a message to the system log +*/ + +/** \fn int setlogmask_thread(int priorityMask) +\brief sets the logging priority mask +*/