diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-24 01:05:41 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-09-24 01:05:41 +0200 |
commit | 343b51689a958ee35068699ba89f478893b7a12a (patch) | |
tree | 387a9c79c4e45756d19675e92af2f370e39264be /common | |
parent | f2a4f0412bc1f7b9069ecbcce8f5599f46f757e0 (diff) | |
download | eurephia-343b51689a958ee35068699ba89f478893b7a12a.tar.gz eurephia-343b51689a958ee35068699ba89f478893b7a12a.tar.xz eurephia-343b51689a958ee35068699ba89f478893b7a12a.zip |
Added missing doxygen comments after the last eurephia_log() improvements
Ref. commit: f2a4f0412bc1f7b9069ecbcce8f5599f46f757e0
Diffstat (limited to 'common')
-rw-r--r-- | common/eurephia_log.c | 6 | ||||
-rw-r--r-- | common/eurephia_log.h | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/common/eurephia_log.c b/common/eurephia_log.c index defe781..94c901a 100644 --- a/common/eurephia_log.c +++ b/common/eurephia_log.c @@ -161,6 +161,8 @@ pthread_mutex_t log_mutex = PTHREAD_MUTEX_INITIALIZER; * @param log FILE pointer to a log file * @param logdst Log destiation/priority * @param loglvl Log level of the message + * @param file String containing file name of the place this function was called. Usually the __FILE__ macro. + * @param line Line number of the source file this function was called. Usually the __LINE__ macro. * @param fmt stdarg, format string * @param ap stdarg va_list, prepared by va_start() */ @@ -197,13 +199,15 @@ static void file_log(FILE *log, int logdst, int loglvl, const char *file, const } /** - * Simple log function which writes log data to the log file available in the eurephiaCTX + * Internal function. This function should normally be called via the eurephia_log() function. * * @param ctx eurephiaCTX * @param logdst Log destination, can be LOG_INFO, LOG_DEBUG, LOG_WARNING, LOG_ERROR, * LOG_CRITICAL, LOG_FATAL or LOG_PANIC * @param loglvl Log level of the message. If the eurephiaCTX has a lower log level setup * than what this parameter is set to, the message will not be logged. + * @param file String containing file name of the place this function was called. Usually the __FILE__ macro. + * @param line Line number of the source file this function was called. Usually the __LINE__ macro. * @param fmt Contents of the log message (stdarg) */ void _eurephia_log_func(eurephiaCTX *ctx, int logdst, int loglvl, const char *file, const int line, diff --git a/common/eurephia_log.h b/common/eurephia_log.h index 07aaea3..77511d0 100644 --- a/common/eurephia_log.h +++ b/common/eurephia_log.h @@ -57,6 +57,15 @@ int eurephia_log_init(eurephiaCTX *ctx, const char *dest, int loglvl); void eurephia_log_close(eurephiaCTX *ctx); +/** + * Simple log function which writes log data to the log file available in the eurephiaCTX + * Frontend wrapper for the _eurephia_log_func() function. + * + * @param ctx eurephiaCTX + * @param dst Log destination/priority (LOG_INFO, LOG_PANIC, LOG_ERROR, etc) + * @param lvl Verbosity level of the message + * @param log_string The message to be logged + */ #define eurephia_log(ctx, dst, lvl, log_string...) _eurephia_log_func(ctx, dst, lvl, __FILE__, __LINE__, ## log_string) void _eurephia_log_func(eurephiaCTX *ctx, int logdst, int loglvl, const char *file, int line, const char *fmt, ... ); |