{
return screenloglevel;
}
+int getLogLevel()
+{
+ return maxloglevel;
+}
void setConsoleLogging(int level)
{
}
}
/* deprecated */
-void initLog(char* filename, int fileloglevel, char* s00, char* s01, int s02, int screenlevel)
+void initLog(char* filename, int filelevel, char* s00, char* s01, int s02, int screenlevel)
{
- setFileLogging(filename, fileloglevel, 0);
- setConsoleLogging(screenloglevel);
+ setFileLogging(filename, filelevel, 0);
+ setConsoleLogging(screenlevel);
}
void exitLog()
static int loglevels=7;
static char * logimportance2[]= {" ","FATAL ","ERROR ","WARNING","NOTICE ","VERBOSE","DEBUG ", "TRACE "};
-static inline void log(const char* logString)
+static inline void log_str(const char* logString)
{
char timebuffer[32];
char* logBuffer;
{
if (logFile != NULL)
{
- fprintf(logFile, "%s\n", logBuffer);
+ fprintf(logFile, "%s\r\n", logBuffer);
fflush(logFile);
}
}
if(x && (x-z)>maxloglevel)
return;
}
- log(buf);
+ log_str(buf);
}
void msg(const char* format, ...)
{
vsprintf(buf, format, arglist);
va_end(arglist);
strcat(buf, "\n");
- log(buf);
+ log_str(buf);
}