diff options
Diffstat (limited to 'CommonLibs/Logger.h')
-rw-r--r-- | CommonLibs/Logger.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CommonLibs/Logger.h b/CommonLibs/Logger.h index 68c5a9b..099d300 100644 --- a/CommonLibs/Logger.h +++ b/CommonLibs/Logger.h @@ -40,11 +40,13 @@ #include <map> #include <string> +extern int config_log_level; + #define _LOG(level) \ Log(LOG_##level).get() << pthread_self() \ << timestr() << " " __FILE__ ":" << __LINE__ << ":" << __FUNCTION__ << ": " -#define IS_LOG_LEVEL(wLevel) (gGetLoggingLevel(__FILE__)>=LOG_##wLevel) +#define IS_LOG_LEVEL(wLevel) (config_log_level>=LOG_##wLevel) #ifdef NDEBUG #define LOG(wLevel) \ @@ -128,9 +130,7 @@ std::ostream& operator<<(std::ostream& os, std::ostringstream& ss); /**@ Global control and initialization of the logging system. */ //@{ /** Initialize the global logging system. */ -void gLogInit(const char* name, const char* level=NULL, int facility=LOG_USER); -/** Get the logging level associated with a given file. */ -int gGetLoggingLevel(const char *filename=NULL); +void gLogInit(const char* name, const char* level=NULL, int facility=LOG_USER, char* fn=NULL); /** Allow early logging when still in constructors */ void gLogEarly(int level, const char *fmt, ...) __attribute__((format(printf, 2, 3))); //@} |