/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * EPICS BASE Versions 3.13.7 * and higher are distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. \*************************************************************************/ /* caPutLog.c,v 1.25.2.6 2004/10/07 13:37:34 mrk Exp */ /* * Author: Jeffrey O. Hill * Date: 080791 */ /* * ANSI C */ #include #include #include #include #include #include #include #include #include "caPutLogAs.h" #include "caPutLogTask.h" #include "caPutLogClient.h" #define epicsExportSharedSymbols #include "caPutLog.h" #ifndef LOCAL #define LOCAL static #endif /* * caPutLogShow () */ void epicsShareAPI caPutLogShow (int level) { if (level < 0) level = 0; if (level > 2) level = 2; #if 0 caPutLogAsShow(level); #endif caPutLogClientShow(level); } /* * caPutLogReconf() */ int epicsShareAPI caPutLogReconf (int config) { #if 0 caPutLogTaskReconf(config); #endif caPutLogClientFlush(); return caPutLogSuccess; } /* * caPutLogInit() */ int epicsShareAPI caPutLogInit (const char *addr_str, int config) { int status; if (config == caPutLogNone) { return caPutLogSuccess; errlogSevPrintf(errlogInfo, "caPutLog: disabled\n"); } status = caPutLogClientInit(addr_str); if (status) { return caPutLogError; } status = caPutLogTaskStart(config); if (status) { return caPutLogError; } status = caPutLogAsInit(); if (status) { return caPutLogError; } errlogSevPrintf(errlogInfo, "caPutLog: successfully initialized\n"); return caPutLogSuccess; }