yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
log_vendor.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
12#define _H_log_vendor
13/* FILE: log_vendor.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
31date init comment
32----------------------------------------------------------------------
3308-jan-06 abb begun
3402-jun-2012 mts adapted from log.h
35*/
36
37#include <stdio.h>
38#include <xmlstring.h>
39
40#include "procdefs.h"
41#include "status.h"
42#include "log.h"
43#include "log_util.h"
44
45#ifdef __cplusplus
46extern "C" {
47#endif
48
49/********************************************************************
50* *
51* C O N S T A N T S *
52* *
53*********************************************************************/
54
55/********************************************************************
56* *
57* T Y P E S *
58* *
59*********************************************************************/
60
61/********************************************************************
62* *
63* F U N C T I O N S *
64* *
65*********************************************************************/
66 // BEGIN ncxlib/log/log-vendor
72
73
81extern void
82 log_vendor_cleanup ( void );
83
84
88extern void
89 log_vendor_connect (void);
90
91
92#ifndef NO_SYSLOG
106extern void
108 log_debug_t level,
109 const char *fstr,
110 va_list args);
111#endif
112
113
114#ifndef NO_SYSLOG
126extern void
128 log_debug_t level,
129 const char *fstr,
130 va_list args);
131#endif
132
133
134
145extern void
147 log_debug_t level,
148 const char *fstr, ...)
149 __attribute__ ((format (printf, 3, 4)));
150
151
155extern void
156 log_vendor_flush (void);
157
158
168extern void
169 log_vendor_common (boolean recursive,
170 log_debug_t level,
171 log_debug_t sub_level,
172 const char *fstr,
173 va_list args);
174
175
185extern void
186 log_vendor_append (boolean recursive,
187 log_debug_t level,
188 log_debug_t sub_level,
189 const char *fstr,
190 va_list args);
191
192
195#ifdef __cplusplus
196} /* end extern 'C' */
197#endif
198
199#endif /* _H_log_vendor */
void log_vendor_cleanup(void)
Cleanup vendor related logging state, if any.
Definition: log_vendor.c:94
void log_vendor_common(boolean recursive, log_debug_t level, log_debug_t sub_level, const char *fstr, va_list args)
Generate a log entry destined for vendor specific processing.
Definition: log_vendor.c:229
void log_vendor_send(log_debug_app_t app, log_debug_t level, const char *fstr,...) __attribute__((format(printf
Send log data to vendor log output stream.
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:132
void log_vendor_append(boolean recursive, log_debug_t level, log_debug_t sub_level, const char *fstr, va_list args)
Append formatted string output to the internal vendor log buffer.
Definition: log_vendor.c:310
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:165
void void log_vendor_flush(void)
Flush contents of internal buffer to vendor logging system.
Definition: log_vendor.c:206
void log_vendor_connect(void)
Connect to vendor log output stream (implementation TBD).
Definition: log_vendor.c:114
log_debug_app_t
syslog wants to know what app is logging ...
Definition: log.h:367
log_debug_t
The debug level enumerations used in util/log.c.
Definition: log.h:348
NCX System Logging Manager.
Internal SYSLOG Logging support.
Global error messages for status code enumerations.