aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-12-06 21:25:27 +0100
committerHarald Welte <laforge@gnumonks.org>2013-01-11 09:43:32 +0100
commitde6e4983e7f83794e45af5a70b036ed9f4437ab5 (patch)
treea742ef30f0d1bd0a774eadad6546311773627b79 /src/logging.c
parent9043fe57e8852ac4693fe25b887246f2c23aa688 (diff)
add some missing doxygen annotation for libosmocore functions
Diffstat (limited to 'src/logging.c')
-rw-r--r--src/logging.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/logging.c b/src/logging.c
index f58265f7..1b94ec0b 100644
--- a/src/logging.c
+++ b/src/logging.c
@@ -108,6 +108,7 @@ static const struct log_info_cat internal_cat[OSMO_NUM_DLIB] = {
},
};
+/*! \brief descriptive string for each log level */
/* You have to keep this in sync with the structure loglevel_strs. */
const char *loglevel_descriptions[LOGLEVEL_DEFS+1] = {
"Log simply everything",
@@ -318,6 +319,7 @@ void osmo_vlogp(int subsys, int level, const char *file, int line,
}
}
+/*! \brief logging function used by DEBUGP() macro */
void logp(int subsys, const char *file, int line, int cont,
const char *format, ...)
{
@@ -328,6 +330,7 @@ void logp(int subsys, const char *file, int line, int cont,
va_end(ap);
}
+/*! \brief logging function used by LOGP() macro */
void logp2(int subsys, unsigned int level, const char *file, int line, int cont, const char *format, ...)
{
va_list ap;
@@ -431,6 +434,12 @@ void log_set_log_level(struct log_target *target, int log_level)
target->loglevel = log_level;
}
+/*! \brief Set a category filter on a given log target
+ * \param[in] target Log target to be affected
+ * \param[in] category Log category to be affected
+ * \param[in] enable whether to enable or disable the filter
+ * \param[in] level Log level of the filter
+ */
void log_set_category_filter(struct log_target *target, int category,
int enable, int level)
{