Provides APIs for System Logging.
More...
|
int | syslog (int priority, FAR const char *format,...) |
| control system log More...
|
|
int | vsyslog (int priority, FAR const char *src, va_list ap) |
| performs the same task as syslog() with the difference that it takes a set of arguments which have been obtained using the stdarg variable argument list macros More...
|
|
int | lowsyslog (int priority, FAR const char *format,...) |
| a non-standard, low-level system logging interface. More...
|
|
int | lowvsyslog (int priority, FAR const char *format, va_list ap) |
| performs the same task as lowsyslog() with the difference that it takes a set of arguments which have been obtained using the stdarg variable argument list macros More...
|
|
int | setlogmask (int mask) |
| set the log priority mask More...
|
|
Provides APIs for System Logging.
◆ LOG_ALERT
#define LOG_ALERT 1 /* Action must be taken immediately */ |
◆ LOG_ALL
◆ LOG_AUTH
◆ LOG_AUTHPRIV
◆ LOG_CRIT
#define LOG_CRIT 2 /* Critical conditions */ |
◆ LOG_CRON
◆ LOG_DAEMON
◆ LOG_DEBUG
#define LOG_DEBUG 7 /* Debug-level message */ |
◆ LOG_EMERG
#define LOG_EMERG 0 /* System is unusable */ |
◆ LOG_ERR
#define LOG_ERR 3 /* Error conditions */ |
◆ LOG_FTP
◆ LOG_INFO
#define LOG_INFO 6 /* Informational message */ |
◆ LOG_KERN
◆ LOG_LOCAL0
◆ LOG_LOCAL1
◆ LOG_LOCAL2
◆ LOG_LOCAL3
◆ LOG_LOCAL4
◆ LOG_LOCAL5
◆ LOG_LOCAL6
◆ LOG_LOCAL7
◆ LOG_LPR
◆ LOG_MAIL
◆ LOG_MASK
#define LOG_MASK |
( |
|
p | ) |
(1 << (p)) |
◆ LOG_NEWS
◆ LOG_NOTICE
#define LOG_NOTICE 5 /* Normal, but significant, condition */ |
◆ LOG_SYSLOG
◆ LOG_UPTO
#define LOG_UPTO |
( |
|
p | ) |
((1 << (p)) - 1) |
◆ LOG_USER
◆ LOG_UUCP
◆ LOG_WARNING
#define LOG_WARNING 4 /* Warning conditions */ |
◆ lowsyslog()
int lowsyslog |
( |
int |
priority, |
|
|
FAR const char * |
format, |
|
|
|
... |
|
) |
| |
a non-standard, low-level system logging interface.
#include <syslog.h>
- Parameters
-
[in] | priority | priority of lowsyslog |
[in] | format | output format |
- Returns
- On success, number of characters written is returned. On failure, ERROR is returned.
- Since
- Tizen RT v1.0
◆ lowvsyslog()
int lowvsyslog |
( |
int |
priority, |
|
|
FAR const char * |
format, |
|
|
va_list |
ap |
|
) |
| |
performs the same task as lowsyslog() with the difference that it takes a set of arguments which have been obtained using the stdarg variable argument list macros
#include <syslog.h>
- Parameters
-
[in] | priority | priority of lowvsyslog |
[in] | format | output format |
[in] | ap | stdarg variable argument list macros |
- Returns
- On success, number of characters written is returned. On failure, ERROR is returned.
- Since
- Tizen RT v1.0
◆ setlogmask()
int setlogmask |
( |
int |
mask | ) |
|
◆ syslog()
int syslog |
( |
int |
priority, |
|
|
FAR const char * |
format, |
|
|
|
... |
|
) |
| |
◆ vsyslog()
int vsyslog |
( |
int |
priority, |
|
|
FAR const char * |
src, |
|
|
va_list |
ap |
|
) |
| |
performs the same task as syslog() with the difference that it takes a set of arguments which have been obtained using the stdarg variable argument list macros
#include <syslog.h>
- Parameters
-
[in] | priority | priority of vsyslog |
[in] | src | output format |
[in] | ap | stdarg variable argument list macros |
- Returns
- On success, number of characters written is returned. On failure, ERROR is returned.
- Since
- Tizen RT v1.0