IL->INTERLOGD, added glite_common_log_reread
authorJan Pospíšil <honik@ntc.zcu.cz>
Tue, 14 Jul 2009 08:18:49 +0000 (08:18 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Tue, 14 Jul 2009 08:18:49 +0000 (08:18 +0000)
org.glite.lbjp-common.log/log.h
org.glite.lbjp-common.log/log4crc.example

index 3bd9031..fc66000 100644 (file)
@@ -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
index 9e157b2..20c03d3 100644 (file)
@@ -18,7 +18,7 @@
 
         <category name="LB" priority="debug" appender="stdout"/>
         <category name="LB.LOGD" priority="debug" appender="stdout"/>
-        <category name="LB.IL" priority="debug" appender="stdout"/>
+        <category name="LB.INTERLOGD" priority="debug" appender="stdout"/>
         <category name="LB.SERVER" priority="debug" appender="stdout"/>
 
         <!-- default appenders ===================================== -->