@@ -224,7 +224,6 @@ struct log_config
224
224
*
225
225
* @brief Starts the logging subsystem
226
226
* @param l_cfg logging system configuration
227
- * @return
228
227
*
229
228
*/
230
229
enum logReturns
@@ -241,7 +240,7 @@ internal_log_end(struct log_config *l_cfg);
241
240
242
241
/**
243
242
* Converts a log level to a string
244
- * @param lvl, the loglevel
243
+ * @param lvl the loglevel
245
244
* @param str pointer where the string will be stored.
246
245
*/
247
246
void
@@ -250,7 +249,7 @@ internal_log_lvl2str(const enum logLevels lvl, char *str);
250
249
/**
251
250
*
252
251
* @brief Converts a string to a log level
253
- * @param s The string to convert
252
+ * @param buf The string to convert
254
253
* @return The corresponding level or LOG_LEVEL_DEBUG if error
255
254
*
256
255
*/
@@ -273,12 +272,11 @@ internal_log_config_dump(struct log_config *config);
273
272
274
273
/**
275
274
* the log function that all files use to log an event.
276
- * @param lvl, the loglevel
277
- * @param override_destination_level, if true then the destination log level is not used
278
- * @param override_log_level, the loglevel instead of the destination log level if override_destination_level is true
279
- * @param msg, the logtext.
280
- * @param ap, the values for the message format arguments
281
- * @return
275
+ * @param lvl the loglevel
276
+ * @param override_destination_level if true then the destination log level is not used
277
+ * @param override_log_level the loglevel instead of the destination log level if override_destination_level is true
278
+ * @param msg the logtext.
279
+ * @param ap the values for the message format arguments
282
280
*/
283
281
enum logReturns
284
282
internal_log_message (const enum logLevels lvl ,
@@ -288,9 +286,9 @@ internal_log_message(const enum logLevels lvl,
288
286
va_list ap );
289
287
290
288
/**
291
- * @param log_level, the log level
292
- * @param override_destination_level, if true then the destination log level is ignored.
293
- * @param override_log_level, the log level to use instead of the destination log level
289
+ * @param log_level the log level
290
+ * @param override_destination_level if true then the destination log level is ignored.
291
+ * @param override_log_level the log level to use instead of the destination log level
294
292
* if override_destination_level is true
295
293
* @return true if at least one log destination will accept a message logged at the given level.
296
294
*/
@@ -300,9 +298,9 @@ internal_log_is_enabled_for_level(const enum logLevels log_level,
300
298
const enum logLevels override_log_level );
301
299
302
300
/**
303
- * @param function_name, the function name (typically the __func__ macro)
304
- * @param file_name, the file name (typically the __FILE__ macro)
305
- * @param[out] log_level_return, the log level to use instead of the destination log level
301
+ * @param function_name the function name (typically the __func__ macro)
302
+ * @param file_name the file name (typically the __FILE__ macro)
303
+ * @param[out] log_level_return the log level to use instead of the destination log level
306
304
* @return true if the logger location overrides the destination log levels
307
305
*/
308
306
bool_t
@@ -316,7 +314,6 @@ internal_log_location_overrides_level(const char *function_name,
316
314
/**
317
315
* This function initialize the log facilities according to the configuration
318
316
* file, that is described by the in parameter.
319
- * @param iniFile
320
317
* @param applicationName the name that is used in the log for the running
321
318
* application
322
319
* @param flags Flags to affect the operation of the call
@@ -328,8 +325,6 @@ log_start(const char *iniFile, const char *applicationName,
328
325
329
326
/**
330
327
* An alternative log_start where the caller gives the params directly.
331
- * @param config
332
- * @return
333
328
*
334
329
* @post to avoid memory leaks, the config argument must be free'ed using
335
330
* `log_config_free()`
@@ -344,8 +339,8 @@ log_start_from_param(const struct log_config *src_log_config);
344
339
* The config can be customised by the caller before calling
345
340
* log_start_from_param()
346
341
*
347
- * @param Default log level
348
- * @param Log level name, or NULL. This can be used to provide an
342
+ * @param lvl log level
343
+ * @param override_name level name, or NULL. This can be used to provide an
349
344
* override to the default log level, by environment variable or
350
345
* argument.
351
346
*
@@ -357,10 +352,8 @@ log_config_init_for_console(enum logLevels lvl, const char *override_name);
357
352
/**
358
353
* Read configuration from a file and store the values in the returned
359
354
* log_config.
360
- * @param file
361
- * @param applicationName, the application name used in the log events.
362
- * @param section_prefix, prefix for the logging sections to parse
363
- * @return
355
+ * @param applicationName the application name used in the log events.
356
+ * @param section_prefix prefix for the logging sections to parse
364
357
*/
365
358
struct log_config *
366
359
log_config_init_from_config (const char * iniFilename ,
@@ -375,7 +368,6 @@ log_config_free(struct log_config *config);
375
368
376
369
/**
377
370
* Function that terminates all logging
378
- * @return
379
371
*/
380
372
enum logReturns
381
373
log_end (void );
@@ -385,10 +377,8 @@ log_end(void);
385
377
*
386
378
* Please prefer to use the LOG and LOG_DEVEL macros instead of this function directly.
387
379
*
388
- * @param lvl, the loglevel
389
- * @param msg, the logtext.
390
- * @param ...
391
- * @return
380
+ * @param lvl the loglevel
381
+ * @param msg the logtext.
392
382
*/
393
383
enum logReturns
394
384
log_message (const enum logLevels lvl , const char * msg , ...) printflike (2 , 3 );
@@ -405,13 +395,11 @@ log_hexdump(const enum logLevels log_level,
405
395
*
406
396
* Please prefer to use the LOG and LOG_DEVEL macros instead of this function directly.
407
397
*
408
- * @param function_name, the function name (typically the __func__ macro)
409
- * @param file_name, the file name (typically the __FILE__ macro)
410
- * @param line_number, the line number in the file (typically the __LINE__ macro)
411
- * @param lvl, the loglevel
412
- * @param msg, the logtext.
413
- * @param ...
414
- * @return
398
+ * @param function_name the function name (typically the __func__ macro)
399
+ * @param file_name the file name (typically the __FILE__ macro)
400
+ * @param line_number the line number in the file (typically the __LINE__ macro)
401
+ * @param lvl the loglevel
402
+ * @param msg the logtext.
415
403
*/
416
404
enum logReturns
417
405
log_message_with_location (const char * function_name ,
@@ -434,13 +422,11 @@ log_hexdump_with_location(const char *function_name,
434
422
* This function returns the configured file name for the logfile
435
423
* @param replybuf the buffer where the reply is stored
436
424
* @param bufsize how big is the reply buffer.
437
- * @return
438
425
*/
439
426
char * getLogFile (char * replybuf , int bufsize );
440
427
441
428
/**
442
429
* Returns formatted datetime for log
443
- * @return
444
430
*/
445
431
char * getFormattedDateTime (char * replybuf , int bufsize );
446
432
0 commit comments