File nut/pro/syslog.c


Included Files


Preprocessor definitions

#define SYSLOG_INTERNAL

#define SYSLOG_PORT 514


Global Variable syslog_buf

char* syslog_buf
Visible in:   nut/pro/syslog.c
Used in: closelog() nut/pro/syslog.c
  openlog() nut/pro/syslog.c
  syslog_flush() nut/pro/syslog.c
  syslog_header() nut/pro/syslog.c
  vsyslog() nut/pro/syslog.c

Local Variables

syslog_sock
static UDPSOCKET* syslog_sock
Used in: closelog()  
  openlog()  
  syslog_flush()  

syslog_server
static uint32_t syslog_server

Used in: setlogserver()  
  syslog_flush()  

syslog_port
static uint16_t syslog_port

Used in: setlogserver()  
  syslog_flush()  

syslog_fac
static int syslog_fac

Used in: openlog()  
  syslog_header()  

syslog_mask
static int syslog_mask

Used in: setlogmask()  
  syslog_header()  

syslog_stat
static int syslog_stat

Used in: openlog()  
  syslog_flush()  
  syslog_header()  

syslog_taglen
static size_t syslog_taglen

Used in: closelog()  
  openlog()  
  syslog_header()  

syslog_tag
static char* syslog_tag

Used in: closelog()  
  openlog()  
  syslog_header()  

Global Function closelog()

void closelog ( void )
Prototyped in: nut/include/sys/syslog.h
Calls: NutUdpDestroySocket() nut/net/udpsock.c
  free() nut/crt/malloc.c
Called by: openlog() nut/pro/syslog.c
References Variables: syslog_buf nut/pro/syslog.c
  syslog_sock nut/pro/syslog.c
  syslog_tag nut/pro/syslog.c
  syslog_taglen nut/pro/syslog.c

Global Function openlog()

void openlog ( const char* ident, int logstat, int logfac )
Prototyped in: nut/include/sys/syslog.h
Calls: NutUdpCreateSocket() nut/net/udpsock.c
  closelog() nut/pro/syslog.c
  malloc() nut/crt/malloc.c
  strcpy() nut/c/string/strcpy.c
  strlen() nut/c/string/strlen.c
Called by: NutAppMain() nut/app/logtime/logtime.c
  syslog_header() nut/pro/syslog.c
References Variables: syslog_buf nut/pro/syslog.c
  syslog_fac nut/pro/syslog.c
  syslog_sock nut/pro/syslog.c
  syslog_stat nut/pro/syslog.c
  syslog_tag nut/pro/syslog.c
  syslog_taglen nut/pro/syslog.c

Global Function setlogmask()

int setlogmask ( int logmask )
Prototyped in: nut/include/sys/syslog.h
References Variables: syslog_mask nut/pro/syslog.c

Global Function setlogserver()

uint32_t setlogserver ( uint32_t ip, uint16_t port )
Prototyped in: nut/include/sys/syslog.h
Called by: NutAppMain() nut/app/logtime/logtime.c
References Variables: syslog_port nut/pro/syslog.c
  syslog_server nut/pro/syslog.c

Global Function syslog()

void syslog ( int pri, const char* fmt, ... )
Prototyped in: nut/include/sys/syslog.h
Calls: vsyslog() nut/pro/syslog.c
  __builtin_va_end(), __builtin_va_start()
Called by: NutAppMain() nut/app/logtime/logtime.c

Global Function syslog_flush()

void syslog_flush ( size_t len )
Prototyped in: nut/include/sys/syslog.h
Calls: NutUdpSendTo() nut/net/udpsock.c
  _fileno() nut/crt/fileno.c
  _write() nut/crt/write.c
Called by: vsyslog() nut/pro/syslog.c
References Variables: syslog_buf nut/pro/syslog.c
  syslog_port nut/pro/syslog.c
  syslog_server nut/pro/syslog.c
  syslog_sock nut/pro/syslog.c
  syslog_stat nut/pro/syslog.c

Global Function syslog_header()

size_t syslog_header ( int pri )
Prototyped in: nut/include/sys/syslog.h
Calls: localtime() nut/crt/localtime.c
  openlog() nut/pro/syslog.c
  sprintf() nut/crt/sprintf.c
  strcpy() nut/c/string/strcpy.c
  strlen() nut/c/string/strlen.c
  time() nut/crt/time.c
Called by: vsyslog() nut/pro/syslog.c
References Variables: syslog_buf nut/pro/syslog.c
  syslog_fac nut/pro/syslog.c
  syslog_mask nut/pro/syslog.c
  syslog_stat nut/pro/syslog.c
  syslog_tag nut/pro/syslog.c
  syslog_taglen nut/pro/syslog.c

Global Function vsyslog()

void vsyslog ( int pri, const char* fmt, va_list ap )
Prototyped in: nut/include/sys/syslog.h
Calls: syslog_flush() nut/pro/syslog.c
  syslog_header() nut/pro/syslog.c
  vsnprintf() nut/crt/vsnprintf.c
Called by: syslog() nut/pro/syslog.c
References Variables: syslog_buf nut/pro/syslog.c