|
NetBurner 3.5.6
PDF Version |
Functions | |
| int | SysLog (const char *format,...) |
| Send a formatted log message to the syslog server. | |
| int | SysLogVia (int interfaceNum, const char *format,...) |
| Send a formatted log message via a specific network interface. | |
Variables | |
| IPADDR | SysLogAddress |
| Destination IP address for syslog messages. | |
#include< syslog.h>
| int SysLog | ( | const char * | format, |
| ... ) |
#include <syslog.h>
Send a formatted log message to the syslog server.
This function sends a formatted text message to the configured syslog destination using UDP. The message format follows printf() conventions with full support for format specifiers including floating-point numbers.
The function:
| format | Printf-style format string supporting all standard format specifiers:
|
| ... | Variable arguments corresponding to format specifiers in the format string |
| int SysLogVia | ( | int | interfaceNum, |
| const char * | format, | ||
| ... ) |
#include <syslog.h>
Send a formatted log message via a specific network interface.
This function is identical to SysLog() but allows explicit selection of the network interface to use for transmission. This is primarily useful when:
The function operates identically to SysLog() but routes the UDP packet through the specified interface rather than using the default routing table.
| interfaceNum | Zero-based index of the network interface to use for transmission:
|
| format | Printf-style format string (same as SysLog()) |
| ... | Variable arguments corresponding to format specifiers |
|
extern |
#include <syslog.h>
Destination IP address for syslog messages.
This global variable specifies the IP address of the host or server where syslog messages should be sent. The syslog protocol uses UDP port 514 by default (this is hardcoded and cannot be changed).
Default behavior: