EPICS Base  7.0.8.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
logClient.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS Base is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
11 /* logClient.h,v 1.5.2.1 2003/07/08 00:08:06 jhill Exp */
12 /*
13  *
14  * Author: Jeffrey O. Hill
15  * Date: 080791
16  */
26 #ifndef INClogClienth
27 #define INClogClienth 1
28 #include "libComAPI.h"
29 #include "osiSock.h" /* for 'struct in_addr' */
30 
31 /* include default log client interface for backward compatibility */
32 #include "iocLog.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
40 typedef void *logClientId;
41 
55 LIBCOM_API logClientId epicsStdCall logClientCreate (
56  struct in_addr server_addr, unsigned short server_port);
57 
68 LIBCOM_API void epicsStdCall logClientSend (logClientId id, const char *message);
69 
78 LIBCOM_API void epicsStdCall logClientShow (logClientId id, unsigned level);
79 
86 LIBCOM_API void epicsStdCall logClientFlush (logClientId id);
87 
95 LIBCOM_API void epicsStdCall iocLogPrefix(const char* prefix);
96 
100 /* note: implementations are in iocLog.c, not logClient.c */
101 LIBCOM_API logClientId epicsStdCall logClientInit (void);
102 
103 #ifdef __cplusplus
104 }
105 #endif
106 
107 #endif /*INClogClienth*/
Platform independent socket support library API.
LIBCOM_API void epicsStdCall logClientSend(logClientId id, const char *message)
Log message.
LIBCOM_API void epicsStdCall iocLogPrefix(const char *prefix)
Set prefix to be sent infront of every log message.
void * logClientId
Abstract type that represents handle to the log client.
Definition: logClient.h:40
LIBCOM_API void epicsStdCall logClientShow(logClientId id, unsigned level)
Prints debug information about the log client state.
LIBCOM_API logClientId epicsStdCall logClientCreate(struct in_addr server_addr, unsigned short server_port)
Creates a new log client.
LIBCOM_API void epicsStdCall logClientFlush(logClientId id)
Flushes all outstanding messages.
LIBCOM_API logClientId epicsStdCall logClientInit(void)
DEPRECATED.