From 2f05025d37446c2b81801a00e6786ee891d7e688 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 28 May 2002 11:41:24 +0000 Subject: [PATCH] screenloglevel is global now. --- lib/log.c | 2 +- lib/log.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/log.c b/lib/log.c index ace2987..6313698 100644 --- a/lib/log.c +++ b/lib/log.c @@ -27,7 +27,7 @@ #include "log.h" -static int screenloglevel = 1; +int screenloglevel = 1; static int fileloglevel = -1; static int socketloglevel = -1; static int maxloglevel = 1; diff --git a/lib/log.h b/lib/log.h index 34a8c16..9ba8150 100644 --- a/lib/log.h +++ b/lib/log.h @@ -27,6 +27,8 @@ #define LOGLEVEL_VERBOSE 4 #define LOGLEVEL_DEBUG 5 +extern int screenloglevel; + extern void initLog(char* pLogDir, int fileloglevel, char* servAddr, char* logPort, int serverloglevel, int screenloglevel); extern void logf(const char* logFormat, ...); extern void exitLog(void); -- 1.7.10.4