~info-martin-konrad/epics-gateway/putlog

« back to all changes in this revision

Viewing changes to gateStat.cc

  • Committer: Martin Konrad
  • Author(s): John Priller
  • Date: 2014-03-17 19:21:55 UTC
  • Revision ID: konrad@frib.msu.edu-20140317192155-uq670l1mkebipfb7
Add option to compile in and use caPutLog

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
                          pStat && pStat->getName()?pStat->getName():"Unknown");
93
93
                        fflush(fp);
94
94
                }
 
95
#ifdef WITH_CAPUTLOG
 
96
        if (global_resources->hasCaPutlogAddress()) {
 
97
          global_resources->caPutLog_Send(asclient->user() ? asclient->user() : "Unknown",
 
98
                                          asclient->host() ? asclient->host() : "Unknown",
 
99
                                          (pStat && pStat->getName()) ? pStat->getName() : "Unknown",
 
100
                                          (pStat) ? pStat->pvData() : NULL,
 
101
                                          &value);
 
102
        }
 
103
#endif
95
104
        }
96
105
        
97
106
        // Call the non-virtual-function write() in the gateStat