diff options
author | m0gg | 2006-12-10 19:21:05 +0000 |
---|---|---|
committer | m0gg | 2006-12-10 19:21:05 +0000 |
commit | f4c29af542bbded2fe36d9bdc80808c3a7f5d92b (patch) | |
tree | 4e131c9e14555cce9dcb9af7298d88953a230e7a /nanohttp/nanohttp-logging.h | |
parent | a1267cdc17db793dbd3d960d1da0b6cf397e2b3e (diff) | |
download | csoap-f4c29af542bbded2fe36d9bdc80808c3a7f5d92b.tar.gz csoap-f4c29af542bbded2fe36d9bdc80808c3a7f5d92b.tar.bz2 |
nhttp client fix and documentation update
Diffstat (limited to 'nanohttp/nanohttp-logging.h')
-rw-r--r-- | nanohttp/nanohttp-logging.h | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/nanohttp/nanohttp-logging.h b/nanohttp/nanohttp-logging.h index 16a8ddb..cf1fe3f 100644 --- a/nanohttp/nanohttp-logging.h +++ b/nanohttp/nanohttp-logging.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-logging.h,v 1.4 2006/11/25 17:03:20 m0gg Exp $ + * $Id: nanohttp-logging.h,v 1.5 2006/12/10 19:21:06 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2006 Ferhat Ayaz @@ -44,10 +44,42 @@ typedef enum log_level extern "C" { #endif +/** + * + * Set the loglevel. + * + * @param level The new loglevel. + * + * @return The old loglevel. + * + */ extern log_level_t hlog_set_level(log_level_t level); + +/** + * + * Get the loglevel. + * + * @return The current loglevel. + * + */ extern log_level_t hlog_get_level(void); +/** + * + * Set the logfile. + * + * @param filename The filename of the logfile. + * + */ extern void hlog_set_file(const char *filename); + +/** + * + * Get the filename of the logfile. + * + * @return Pointer to the filename or null otherwise. + * + */ extern char *hlog_get_file(void); #ifdef WIN32 @@ -67,8 +99,9 @@ extern void hlog_error(const char *FUNC, const char *format, ...); } #endif -/* - * XXX: This isn't the "right" way +/** + * + * @todo This isn't the "right" way * * #define log_debug(fmt, ...) fprintf(stderr, "EMERGENCY: %s: " fmt "\n", \ * __FUNCTION__, ## __VA_ARGS__) |