#include "log.h"
-static int screenloglevel = 1;
+int screenloglevel = 1;
static int fileloglevel = -1;
static int socketloglevel = -1;
static int maxloglevel = 1;
static char * logimportance[]= {"Fatal","Error","Warning","Notice","Verbose","Debug"};
static int loglevels=6;
static char * logimportance2[]= {" ","FATAL ","ERROR ","WARNING","NOTICE ","VERBOSE","DEBUG "};
-void log(char* logString)
+static inline void log(char* logString)
{
char timebuffer[32];
char* logBuffer;
/* speed up hack */
if(format[0]=='<') {
char*z = "fewnvd";
- char*x = strchr(z,format[0]);
+ char*x = strchr(z,format[1]);
if(x && (x-z)>maxloglevel)
return;
}