aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_logging.c
diff options
context:
space:
mode:
authorWillow Liquorice <willow@howhill.com>2022-08-26 20:53:33 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2022-08-30 09:42:00 +0200
commit3f99b8b78db4808c903ee093da8b48ff0ed1b934 (patch)
tree946db496100b60e151c40a550fe07df608338552 /src/util/common_logging.c
parent9f2566910ef020cee7a031605137775b3cb3f32b (diff)
downloadgnunet-3f99b8b78db4808c903ee093da8b48ff0ed1b934.tar.gz
gnunet-3f99b8b78db4808c903ee093da8b48ff0ed1b934.zip
-First pass through GNUnet common library
Diffstat (limited to 'src/util/common_logging.c')
-rw-r--r--src/util/common_logging.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/util/common_logging.c b/src/util/common_logging.c
index b07f3fc0b..27d9ca3ce 100644
--- a/src/util/common_logging.c
+++ b/src/util/common_logging.c
@@ -768,15 +768,6 @@ GNUNET_log_setup (const char *comp,
768} 768}
769 769
770 770
771/**
772 * Add a custom logger. Note that installing any custom logger
773 * will disable the standard logger. When multiple custom loggers
774 * are installed, all will be called. The standard logger will
775 * only be used if no custom loggers are present.
776 *
777 * @param logger log function
778 * @param logger_cls closure for @a logger
779 */
780void 771void
781GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls) 772GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls)
782{ 773{
@@ -790,12 +781,6 @@ GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls)
790} 781}
791 782
792 783
793/**
794 * Remove a custom logger.
795 *
796 * @param logger log function
797 * @param logger_cls closure for @a logger
798 */
799void 784void
800GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls) 785GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls)
801{ 786{
@@ -936,12 +921,6 @@ flush_bulk (const char *datestr)
936} 921}
937 922
938 923
939/**
940 * Ignore the next n calls to the log function.
941 *
942 * @param n number of log calls to ignore (could be negative)
943 * @param check_reset #GNUNET_YES to assert that the log skip counter is currently zero
944 */
945void 924void
946GNUNET_log_skip (int n, int check_reset) 925GNUNET_log_skip (int n, int check_reset)
947{ 926{
@@ -1118,12 +1097,6 @@ GNUNET_log_from_nocheck (enum GNUNET_ErrorType kind,
1118} 1097}
1119 1098
1120 1099
1121/**
1122 * Convert error type to string.
1123 *
1124 * @param kind type to convert
1125 * @return string corresponding to the type
1126 */
1127const char * 1100const char *
1128GNUNET_error_type_to_string (enum GNUNET_ErrorType kind) 1101GNUNET_error_type_to_string (enum GNUNET_ErrorType kind)
1129{ 1102{
@@ -1470,13 +1443,6 @@ GNUNET_a2s (const struct sockaddr *addr, socklen_t addrlen)
1470} 1443}
1471 1444
1472 1445
1473/**
1474 * Log error message about missing configuration option.
1475 *
1476 * @param kind log level
1477 * @param section section with missing option
1478 * @param option name of missing option
1479 */
1480void 1446void
1481GNUNET_log_config_missing (enum GNUNET_ErrorType kind, 1447GNUNET_log_config_missing (enum GNUNET_ErrorType kind,
1482 const char *section, 1448 const char *section,
@@ -1490,14 +1456,6 @@ GNUNET_log_config_missing (enum GNUNET_ErrorType kind,
1490} 1456}
1491 1457
1492 1458
1493/**
1494 * Log error message about invalid configuration option value.
1495 *
1496 * @param kind log level
1497 * @param section section with invalid option
1498 * @param option name of invalid option
1499 * @param required what is required that is invalid about the option
1500 */
1501void 1459void
1502GNUNET_log_config_invalid (enum GNUNET_ErrorType kind, 1460GNUNET_log_config_invalid (enum GNUNET_ErrorType kind,
1503 const char *section, 1461 const char *section,