Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
syslog.h File Reference
#include <stdarg.h>

Go to the source code of this file.

Macros

#define LOG_PID   1
#define LOG_CONS   2
#define LOG_NDELAY   4
#define LOG_ODELAY   8
#define LOG_NOWAIT   16
#define LOG_PERROR   32
#define LOG_KERN   0
#define LOG_USER   1
#define LOG_MAIL   2
#define LOG_NEWS   3
#define LOG_UUCP   4
#define LOG_DAEMON   5
#define LOG_AUTH   6
#define LOG_CRON   7
#define LOG_LPR   8
#define LOG_LOCAL0   9
#define LOG_LOCAL1   10
#define LOG_LOCAL2   11
#define LOG_LOCAL3   12
#define LOG_LOCAL4   13
#define LOG_LOCAL5   14
#define LOG_LOCAL6   15
#define LOG_LOCAL7   16
#define LOG_EMERG   0
#define LOG_ALERT   1
#define LOG_CRIT   2
#define LOG_ERR   3
#define LOG_WARNING   4
#define LOG_NOTICE   5
#define LOG_INFO   6
#define LOG_DEBUG   7
#define LOG_MASK(mask)

Functions

void closelog (void)
void openlog (const char *ident, int logopt, int facility)
int setlogmask (int maskpri)
void syslog (int priority, const char *message,...)
void vsyslog (int priority, const char *format, va_list ap)

Macro Definition Documentation

◆ LOG_ALERT

#define LOG_ALERT   1

◆ LOG_AUTH

#define LOG_AUTH   6

◆ LOG_CONS

#define LOG_CONS   2

◆ LOG_CRIT

#define LOG_CRIT   2

◆ LOG_CRON

#define LOG_CRON   7

◆ LOG_DAEMON

#define LOG_DAEMON   5

◆ LOG_DEBUG

#define LOG_DEBUG   7

◆ LOG_EMERG

#define LOG_EMERG   0

◆ LOG_ERR

#define LOG_ERR   3

◆ LOG_INFO

#define LOG_INFO   6

◆ LOG_KERN

#define LOG_KERN   0

◆ LOG_LOCAL0

#define LOG_LOCAL0   9

◆ LOG_LOCAL1

#define LOG_LOCAL1   10

◆ LOG_LOCAL2

#define LOG_LOCAL2   11

◆ LOG_LOCAL3

#define LOG_LOCAL3   12

◆ LOG_LOCAL4

#define LOG_LOCAL4   13

◆ LOG_LOCAL5

#define LOG_LOCAL5   14

◆ LOG_LOCAL6

#define LOG_LOCAL6   15

◆ LOG_LOCAL7

#define LOG_LOCAL7   16

◆ LOG_LPR

#define LOG_LPR   8

◆ LOG_MAIL

#define LOG_MAIL   2

◆ LOG_MASK

#define LOG_MASK ( mask)
Value:
((mask) & BIT_MASK(LOG_DEBUG + 1))
#define BIT_MASK(n)
Bit mask with bits 0 through n-1 (inclusive) set, or 0 if n is 0.
Definition util_macro.h:68
#define LOG_DEBUG
Definition syslog.h:46

◆ LOG_NDELAY

#define LOG_NDELAY   4

◆ LOG_NEWS

#define LOG_NEWS   3

◆ LOG_NOTICE

#define LOG_NOTICE   5

◆ LOG_NOWAIT

#define LOG_NOWAIT   16

◆ LOG_ODELAY

#define LOG_ODELAY   8

◆ LOG_PERROR

#define LOG_PERROR   32

◆ LOG_PID

#define LOG_PID   1

◆ LOG_USER

#define LOG_USER   1

◆ LOG_UUCP

#define LOG_UUCP   4

◆ LOG_WARNING

#define LOG_WARNING   4

Function Documentation

◆ closelog()

void closelog ( void )

◆ openlog()

void openlog ( const char * ident,
int logopt,
int facility )

◆ setlogmask()

int setlogmask ( int maskpri)

◆ syslog()

void syslog ( int priority,
const char * message,
... )

◆ vsyslog()

void vsyslog ( int priority,
const char * format,
va_list ap )