logging.h
Go to the documentation of this file.
/* SPDX-FileCopyrightText: 2017-2023 Greenbone AG
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _GVM_BASE_LOGGING_H
#define _GVM_BASE_LOGGING_H
#include <glib.h> /* for GSList, gchar, GLogLevelFlags, gpointer */
#define LOG_REFERENCES_AVAILABLE
GSList *
load_log_configuration (gchar *);
void
free_log_configuration (GSList *);
gchar *
get_time (gchar *);
void
gvm_log_silent (const char *, GLogLevelFlags, const char *, gpointer);
void
gvm_log_func (const char *, GLogLevelFlags, const char *, gpointer);
void
log_func_for_gnutls (int, const char *);
int
setup_log_handlers (GSList *);
void
gvm_log_lock (void);
void
gvm_log_unlock (void);
void
set_log_reference (char *);
char *
get_log_reference (void);
void
free_log_reference (void);
void
set_log_tz (const gchar *);
#endif /* not _GVM_BASE_LOGGING_H */
load_log_configuration
GSList * load_log_configuration(gchar *)
Loads parameters from a config file into a linked list.
Definition logging.c:161
free_log_configuration
void free_log_configuration(GSList *)
Frees all resources loaded by the config loader.
Definition logging.c:286
gvm_log_func
void gvm_log_func(const char *, GLogLevelFlags, const char *, gpointer)
Creates the formatted string and outputs it to the log destination.
Definition logging.c:428
free_log_reference
void free_log_reference(void)
Free the log reference object.
Definition logging.c:412
get_log_reference
char * get_log_reference(void)
Get the log reference object.
Definition logging.c:400
set_log_tz
void set_log_tz(const gchar *)
Set the log timezone.
Definition logging.c:903
gvm_log_unlock
void gvm_log_unlock(void)
Unlock logger_mutex.
Definition logging.c:363
log_func_for_gnutls
void log_func_for_gnutls(int, const char *)
This function logs debug messages from gnutls.
Definition logging.c:838
gvm_log_silent
void gvm_log_silent(const char *, GLogLevelFlags, const char *, gpointer)
Returns immediately.
Definition logging.c:322
gvm_log_lock
void gvm_log_lock(void)
Try to lock logger_mutex.
Definition logging.c:351
set_log_reference
void set_log_reference(char *)
Set the log reference object.
Definition logging.c:384
setup_log_handlers
int setup_log_handlers(GSList *)
Sets up routing of logdomains to log handlers.
Definition logging.c:981
get_time
gchar * get_time(gchar *)
Returns time as specified in time_fmt strftime format.
Definition logging.c:57