From 08bb208ff9ab74637ac546e0992e985f999e57d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Posp=C3=AD=C5=A1il?= Date: Tue, 14 Jul 2009 08:18:49 +0000 Subject: [PATCH] IL->INTERLOGD, added glite_common_log_reread --- org.glite.lbjp-common.log/log.h | 9 +++++++-- org.glite.lbjp-common.log/log4crc.example | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/org.glite.lbjp-common.log/log.h b/org.glite.lbjp-common.log/log.h index 3bd9031..fc66000 100644 --- a/org.glite.lbjp-common.log/log.h +++ b/org.glite.lbjp-common.log/log.h @@ -20,7 +20,7 @@ extern "C" { #define LOG_CATEGORY_CONTROL "CONTROL" #define LOG_CATEGORY_LB "LB" #define LOG_CATEGORY_LB_LOGD "LB.LOGD" -#define LOG_CATEGORY_LB_IL "LB.IL" +#define LOG_CATEGORY_LB_IL "LB.INTERLOGD" #define LOG_CATEGORY_LB_SERVER "LB.SERVER" /* default priorities */ @@ -65,7 +65,6 @@ static inline int glite_common_log_fini(void) { #endif } - /** * Log a message with the specified priority. * @param catName category name @@ -111,7 +110,13 @@ static inline void glite_common_log(char *catName,int a_priority, const char* a_ #endif } +/* + * Rereads any log4crc files that have changed + */ static inline void glite_common_log_reread(void) { +#ifndef WITHOUT_LOG4C + log4c_reread(); +#endif } #ifdef __cplusplus diff --git a/org.glite.lbjp-common.log/log4crc.example b/org.glite.lbjp-common.log/log4crc.example index 9e157b2..20c03d3 100644 --- a/org.glite.lbjp-common.log/log4crc.example +++ b/org.glite.lbjp-common.log/log4crc.example @@ -18,7 +18,7 @@ - + -- 1.8.2.3