Go to the source code of this file.
|
void | close_logging (void) |
| Close logging stream. More...
|
|
void | init_logging (enum log_streams stream) |
| Open logging stream. More...
|
|
void | logging (int priority, const char *fmt,...) __attribute__((format(printf |
| Submit log message fmt to logging stream. More...
|
|
void void | vlogging (int priority, const char *fmt, va_list ap) __attribute__((format(printf |
| Submit log message fmt to logging stream. More...
|
|
◆ log_streams
Supported output streams for logging.
Enumerator |
---|
LOGGING_SYSLOG | Log to syslog.
|
LOGGING_STDERR | Log to stderr.
|
LOGGING_STDOUT | Log to stdout.
|
Definition at line 37 of file fg_log.h.
◆ close_logging()
void close_logging |
( |
void |
| ) |
|
Close logging stream.
Definition at line 57 of file fg_log.c.
◆ init_logging()
Open logging stream.
- Parameters
-
[in] | stream | to which output stream we log |
Definition at line 43 of file fg_log.c.
49 openlog(
"flowgrindd", LOG_NDELAY | LOG_CONS | LOG_PID, LOG_DAEMON);
◆ logging()
void logging |
( |
int |
priority, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Submit log message fmt
to logging stream.
- Parameters
-
[in] | priority | priority code of log message |
[in] | fmt | format string |
[in] | ... | parameters used to fill fmt |
◆ vlogging()
void void vlogging |
( |
int |
priority, |
|
|
const char * |
fmt, |
|
|
va_list |
ap |
|
) |
| |
Submit log message fmt
to logging stream.
- Parameters
-
[in] | priority | priority code of log message |
[in] | fmt | format string |
[in] | ap | parameters used to fill fmt |