aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/logger.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-12-04 11:46:58 +0000
committerMartin Willi <martin@strongswan.org>2005-12-04 11:46:58 +0000
commit25c41f4df7079b64ba53184e47edbc012ae96123 (patch)
tree93d1ff241cd7bf140c4780478750a20316a9c516 /Source/charon/utils/logger.h
parent26cfe75e4d4266c75ad6adb5244beec6731e6956 (diff)
downloadstrongswan-25c41f4df7079b64ba53184e47edbc012ae96123.tar.bz2
strongswan-25c41f4df7079b64ba53184e47edbc012ae96123.tar.xz
- logging cleanup
- pid re-replaced with thread_ids, since nptl does not distinguish pids between threads
Diffstat (limited to 'Source/charon/utils/logger.h')
-rw-r--r--Source/charon/utils/logger.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/charon/utils/logger.h b/Source/charon/utils/logger.h
index 7f98b9d6c..ee64a6a1a 100644
--- a/Source/charon/utils/logger.h
+++ b/Source/charon/utils/logger.h
@@ -110,8 +110,8 @@ struct logger_t {
*
* @param this logger_t object
* @param loglevel or'ed set of loglevels
- * @param label a labeling name, logged with the bytes
- * @param bytes pointer to the bytes to dump
+ * @param label a labeling name, logged with the bytes
+ * @param bytes pointer to the bytes to dump
* @param len number of bytes to dump
*/
void (*log_bytes) (logger_t *this, logger_level_t loglevel, char *label, char *bytes, size_t len);
@@ -124,7 +124,7 @@ struct logger_t {
*
* @param this logger_t object
* @param loglevel or'ed set of loglevels
- * @param label a labeling name, logged with the bytes
+ * @param label a labeling name, logged with the bytes
* @param chunk pointer to a chunk to log
*/
void (*log_chunk) (logger_t *this, logger_level_t loglevel, char *label, chunk_t *chunk);
@@ -158,13 +158,13 @@ struct logger_t {
*
* @param logger_name name for the logger_t object
* @param log_level or'ed set of log_levels to assign to the new logger_t object
- * @param log_pid TRUE if thread id should also be logged
- * @param output FILE * if log has to go on a file output, NULL for syslog
+ * @param log_thread_id TRUE if thread id should also be logged
+ * @param output FILE * if log has to go on a file output, NULL for syslog
* @return logger_t object
*
* @ingroup utils
*/
-logger_t *logger_create(char *logger_name, logger_level_t log_level, bool log_pid, FILE * output);
+logger_t *logger_create(char *logger_name, logger_level_t log_level, bool log_thread_id, FILE * output);
#endif /*LOGGER_H_*/