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.
#define LOG_ALERT 1 /* Action must be taken immediately */ |
#define LOG_CRIT 2 /* Critical conditions */ |
#define LOG_DEBUG 7 /* Debug-level message */ |
#define LOG_EMERG 0 /* System is unusable */ |
#define LOG_ERR 3 /* Error conditions */ |
#define LOG_INFO 6 /* Informational message */ |
#define LOG_MASK |
( |
|
p | ) |
(1 << (p)) |
#define LOG_NOTICE 5 /* Normal, but significant, condition */ |
#define LOG_UPTO |
( |
|
p | ) |
((1 << (p)) - 1) |
#define LOG_WARNING 4 /* Warning conditions */ |
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
- TizenRT v1.0
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
- TizenRT v1.0
int setlogmask |
( |
int |
mask | ) |
|
int syslog |
( |
int |
priority, |
|
|
FAR const char * |
format, |
|
|
|
... |
|
) |
| |
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
- TizenRT v1.0