From 1f1f8e67c96ea0b002241fea4db086a0d2d260af Mon Sep 17 00:00:00 2001 From: kramm Date: Fri, 22 Oct 2004 15:06:18 +0000 Subject: [PATCH] added getLogLevel() function. --- lib/log.c | 4 ++++ lib/log.h | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/log.c b/lib/log.c index d835836..6c8cb5d 100644 --- a/lib/log.c +++ b/lib/log.c @@ -47,6 +47,10 @@ int getScreenLogLevel() { return screenloglevel; } +int getLogLevel() +{ + return maxloglevel; +} void setConsoleLogging(int level) { diff --git a/lib/log.h b/lib/log.h index 9afa0f5..b15ccd1 100644 --- a/lib/log.h +++ b/lib/log.h @@ -37,6 +37,7 @@ extern "C" { #define LOGLEVEL_DEBUG 5 #define LOGLEVEL_TRACE 6 +extern int getLogLevel(); extern int getScreenLogLevel(); extern void initLog(char* pLogDir, int fileloglevel, char* servAddr, char* logPort, int serverloglevel, int screenloglevel); -- 1.7.10.4