From b5927401bcd676969ca0a5b919f93af46b4e9126 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Mon, 20 Apr 1998 16:01:14 +0000 Subject: [PATCH] minor changes --- src/libCom/errlog.h | 4 +- src/libCom/errlog.html | 152 -------------------------------------- src/libCom/errlogVX.c | 8 +- src/libCom/error/errlog.c | 8 +- src/libCom/error/errlog.h | 4 +- 5 files changed, 14 insertions(+), 162 deletions(-) delete mode 100644 src/libCom/errlog.html diff --git a/src/libCom/errlog.h b/src/libCom/errlog.h index ef5ca1a6c..4abca53d3 100644 --- a/src/libCom/errlog.h +++ b/src/libCom/errlog.h @@ -74,8 +74,8 @@ epicsShareFunc void epicsShareAPI errlogAddListener( epicsShareFunc void epicsShareAPI errlogRemoveListener( errlogListener listener); -epicsShareFunc void epicsShareAPI eltc(int yesno); -epicsShareFunc void epicsShareAPI errlogInit(int bufsize); +epicsShareFunc int epicsShareAPI eltc(int yesno); +epicsShareFunc int epicsShareAPI errlogInit(int bufsize); /*other routines that write to log file*/ epicsShareFunc void epicsShareAPIV errPrintf(long status, const char *pFileName, diff --git a/src/libCom/errlog.html b/src/libCom/errlog.html deleted file mode 100644 index 1afee206f..000000000 --- a/src/libCom/errlog.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - - -

-Error Logging System

-The error logging system provides: - - -

-Overview

- - - -

-Client Routines

-Basic Routines - -Status Routines -
  - -Obsolete Routines - -Add and Remove Log Listener - -target console routines - -eltc determines if errlog task writes message to the console. If error -messages storms are occuring the command can be used to suppress the messages. -A argument of 0 suppresses the messages and any other value lets the message -go to the console. - -

errlogInit can be used to initialize the error logging system with a -larger buffer. The default is 1280 bytes. An extra MAX_MESSAGE_SIZE (currently -256) bytes are allocated but never used. This is a small extra protection -against long error messages. -

-iocLog

-This consists of two modules: iocLogServer and iocLogClient. The client -code runs on each ioc and listens for the messages generated by the errlog -system. It also reports the messages from  vxWorks logMsg. -

-iocLogServer

-This runs on a host. It receives messages for all enabled iocLogClients -in the local area network. The messages are written to a file. Epics base -provides a startup file "base/src/util/rc2.logServer", which is a shell -script to start the server. Consult this script for details. -

-iocLogClient

-This runs on each ioc. It is started by default when iocInit runs. The -global variable iocLogDisable can be used to enable/disable the messages -from being sent to the server. Setting this variable to (0,1) (enables,disables) -the messages generation. If iocLogDisable is set to 1 immediately -after iocCore is loaded then iocLogClient will not even initialize itself. - - diff --git a/src/libCom/errlogVX.c b/src/libCom/errlogVX.c index 71ffce085..9adc3da69 100644 --- a/src/libCom/errlogVX.c +++ b/src/libCom/errlogVX.c @@ -232,10 +232,11 @@ epicsShareFunc void epicsShareAPI errlogRemoveListener( if(!plistenerNode) printf("errlogRemoveListener did not find listener\n"); } -epicsShareFunc void epicsShareAPI eltc(int yesno) +epicsShareFunc int epicsShareAPI eltc(int yesno) { errlogInit(0); pvtData.toConsole = yesno; + return(0); } epicsShareFunc void epicsShareAPIV errPrintf(long status, const char *pFileName, @@ -288,12 +289,12 @@ epicsShareFunc void epicsShareAPIV errPrintf(long status, const char *pFileName, } #define optionsSemM SEM_Q_PRIORITY|SEM_DELETE_SAFE|SEM_INVERSION_SAFE -epicsShareFunc void epicsShareAPI errlogInit(int bufsize) +epicsShareFunc int epicsShareAPI errlogInit(int bufsize) { static int errlogInitFlag=0; void *pbuffer;; - if(!vxTas(&errlogInitFlag)) return; + if(!vxTas(&errlogInitFlag)) return(0); if(bufsize