2006-09-12 12:13:49 +00:00
|
|
|
/*!
|
|
|
|
\file syslog.h
|
|
|
|
\ingroup support
|
|
|
|
\ingroup libroot
|
2005-03-14 16:27:04 +00:00
|
|
|
\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.
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void closelog(void)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief Closes the current log session
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void openlog(const char *ident, int options, int facility)
|
2005-03-14 16:27:04 +00:00
|
|
|
\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.
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn int setlogmask(int priorityMask)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief sets the logging priority mask
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void syslog(int priority, const char *message, ...)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief sends a message to the system log
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void closelog_team(void)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief Closes the log
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void openlog_team(const char *ident, int logopt, int facility)
|
2005-03-14 16:27:04 +00:00
|
|
|
\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.
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void log_team(int priority, const char *message, ...)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief sends a message to the system log
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn int setlogmask_team(int priorityMask)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief sets the logging priority mask
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void closelog_thread(void)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief Closes the log
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void openlog_thread(const char *ident, int logopt, int facility)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief Starts a log session, and sets some output options
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn void log_thread(int priority, const char *message, ...)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief sends a message to the system log
|
|
|
|
*/
|
|
|
|
|
2006-09-12 12:13:49 +00:00
|
|
|
/*! \fn int setlogmask_thread(int priorityMask)
|
2005-03-14 16:27:04 +00:00
|
|
|
\brief sets the logging priority mask
|
|
|
|
*/
|