OpenVAS Scanner
5.1.3
|
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/stat.h>
#include <time.h>
#include <stdarg.h>
#include <syslog.h>
#include "comm.h"
#include "utils.h"
#include "log.h"
Go to the source code of this file.
Functions | |
void | log_init (const char *filename) |
Initialization of the log file. More... | |
int | log_get_fd () |
Get the open log file descriptor. More... | |
void | log_close () |
void | log_vwrite (const char *str, va_list arg_ptr) |
Write into the logfile / syslog using a va_list. More... | |
void | log_write (const char *str,...) |
Write into the logfile / syslog. More... | |
void log_close | ( | void | ) |
int log_get_fd | ( | ) |
void log_init | ( | const char * | filename | ) |
void log_vwrite | ( | const char * | str, |
va_list | arg_ptr | ||
) |
Write into the logfile / syslog using a va_list.
[in] | str | Format string. |
[in] | arg_ptr | String parameters. |
Definition at line 110 of file log.c.
Referenced by log_write().
void log_write | ( | const char * | str, |
... | |||
) |
Write into the logfile / syslog.
[in] | str | Format string, followed by the corresponding parameters if any. |
Definition at line 140 of file log.c.
References log_vwrite().
Referenced by check_kb_status(), comm_init(), comm_loading(), comm_wait_order(), get_max_checks_number(), get_max_hosts_number(), nasl_plugin_add(), plugin_next_unrun_dependency(), plugins_init(), scheduler_rm_running_ports(), and send_plug_info().