This is the first working version of the new logging system. Some work

in fine tuning still needs to be done. But is reasonably OK now.
This commit is contained in:
2016-02-11 13:40:31 +01:00
parent b1cda3f579
commit 66466c1c0f
56 changed files with 420 additions and 1845 deletions

View File

@ -17,9 +17,7 @@ M. Zolliker July 04
#include "remob.h"
#include "splitter.h"
#include "status.h"
#include "servlog.h"
#include "site.h"
#include "commandlog.h"
/*-------------------------------------------------------------------------*/
#define INTERRUPTMODE 0
#define ACCESSCODE 1
@ -275,7 +273,7 @@ static int RemServerTask(void *data)
continue;
if (strstr(rc->line, " ") == rc->line) {
WriteToCommandLog("REMOB>", "infinite echo loop detected");
Log(ERROR,"sys","%s:%s","REMOB", "infinite echo loop detected");
continue;
}
if (isUser == 0) {
@ -629,7 +627,7 @@ static int InterestCallback(int iEvent, void *pEvent, void *pUser)
snprintf(buf, sizeof(buf), "%s.position = %g ", pInfo->pName,
psCall->fVal);
SCWrite(pInfo->pCon, buf, eValue);
SCWrite(pInfo->pCon, buf, eEvent);
return 1;
}