yumapro  20.10-12
YumaPro SDK
log_vendor_extern.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
3  *
4  * Unless required by applicable law or agreed to in writing,
5  * software distributed under the License is distributed on an
6  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7  * KIND, either express or implied. See the License for the
8  * specific language governing permissions and limitations
9  * under the License.
10  */
11 #ifndef _H_log_vendor_extern
12 #define _H_log_vendor_extern
13 /* FILE: log_vendor_extern.h
14 *********************************************************************
15 * *
16 * P U R P O S E *
17 * *
18 *********************************************************************/
19 
25 /*********************************************************************
26 * *
27 * C H A N G E H I S T O R Y *
28 * *
29 *********************************************************************
30 
31 date init comment
32 ----------------------------------------------------------------------
33 08-jan-06 abb begun
34 02-jun-2012 mts adapted from log.h
35 17-oct-2012 mts cloned from log_vendor.h
36 */
37 
38 #include <stdio.h>
39 #include <xmlstring.h>
40 
41 #include "procdefs.h"
42 #include "status.h"
43 #include "log.h"
44 #include "log_util.h"
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 /********************************************************************
51 * *
52 * C O N S T A N T S *
53 * *
54 *********************************************************************/
55 
56 /********************************************************************
57 * *
58 * T Y P E S *
59 * *
60 *********************************************************************/
61 
87 typedef void (*logfn_vendor_init1_t) ( boolean pre_cli );
88 
99 typedef void (*logfn_vendor_send_t) ( log_debug_app_t app,
100  log_debug_t level,
101  const char *fstr,
102  va_list args );
103 
108 typedef void (*logfn_vendor_cleanup_t) ( void );
109 
110 
111 /********************************************************************
112 * *
113 * V A R I A B L E S *
114 * *
115 *********************************************************************/
116 
117 /* Vendor external API callback vector: */
118 extern logfn_vendor_send_t logfn_vendor_send;
119 
120 /********************************************************************
121 * *
122 * F U N C T I O N S *
123 * *
124 *********************************************************************/
125 
139 extern void
141 
142 
146 #ifdef __cplusplus
147 } /* end extern 'C' */
148 #endif
149 
150 #endif /* _H_log_vendor_extern */
log_syslog_cleanup
void log_syslog_cleanup(void)
Cleanup syslog related logging state, if any.
Definition: log_syslog.c:145
tstamp.h
Timestamp utilities.
logfn_vendor_send_t
void(* logfn_vendor_send_t)(log_debug_app_t app, log_debug_t level, const char *fstr, va_list args)
Vendor Logging Send Callback.
Definition: log_vendor_extern.h:99
xml_util.h
XML Utilities.
log_vendor.h
Logging manager vendor API.
logfn_vendor_cleanup_t
void(* logfn_vendor_cleanup_t)(void)
Vendor Logging Cleanup Callback.
Definition: log_vendor_extern.h:108
log_vendor_extern_register_send_fn
void log_vendor_extern_register_send_fn(logfn_vendor_send_t new_vendor_logfn)
Register vendor function to accept YumaPro log output stream (mandatory)
Definition: log_vendor_extern.c:94
log_vendor_extern.h
Logging manager vendor API registration.
log_syslog.h
Syslog logging manager API.
log_vendor_send_to_syslog
void log_vendor_send_to_syslog(log_debug_app_t app, log_debug_t level, const char *fstr, va_list args)
Send vendor log data to syslog output stream.
Definition: log_vendor.c:127
log_warn
void void void log_warn(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_WARN log entry.
log_vendor_test_send_to_syslog
void log_vendor_test_send_to_syslog(log_debug_app_t app, log_debug_t level, const char *fstr, va_list args)
Pass vendor log data to syslog, but pretend to be a vendor callback.
Definition: log_vendor.c:156
log_debug
void void void void void void void log_debug(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG log entry.
log.h
NCX System Logging Manager.
LOG_DEBUG_DEBUG
@ LOG_DEBUG_DEBUG
debug level 1
Definition: log.h:394
LOG_DEBUG_INFO
@ LOG_DEBUG_INFO
all previous + user info trace
Definition: log.h:392
logfn_vendor_init1_t
void(* logfn_vendor_init1_t)(boolean pre_cli)
Vendor Logging Init1 Callback.
Definition: log_vendor_extern.h:87
log_util.h
Internal SYSLOG Logging support.
status.h
Global error messages for status code enumerations.