Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.10.0.3
openapi_logging.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2022 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_logging.h
28 *
29 * @purpose Logging Configuration and Status
30 *
31 * @component OpEN
32 *
33 * @create 28/01/2013
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_LOGGING_H_INCLUDED
39 #define OPENAPI_LOGGING_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
44 typedef enum
45 {
57 
58 typedef enum
59 {
64 
65 typedef enum
66 {
70 
71 #define OPENAPI_LOG_FORMAT_BUF_SIZE 512
72 
73 #define OPENAPI_LOG_ENTRY_BUF_SIZE (OPENAPI_LOG_FORMAT_BUF_SIZE + 80)
74 
75 #define OPENAPI_TRAP_ENTRY_SIZE (300)
76 
77 typedef struct
78 {
79  char trapEntry[OPENAPI_TRAP_ENTRY_SIZE];
81 
82 #define OPENAPI_TRAP_LOG_BUF_SIZE (256 * sizeof(openapiTrapLogEntry_t))
83 
84 
85 /*****************************************************************/
100  OPEN_CONTROL_t cmdLoggingMode);
101 
102 /*****************************************************************/
117  OPEN_CONTROL_t *cmdLoggingMode);
118 
119 /*****************************************************************/
135  OPEN_CONTROL_t loggingConsoleMode);
136 
137 /*****************************************************************/
152  OPEN_CONTROL_t *loggingConsoleMode);
153 
154 /*****************************************************************/
172  OPEN_LOG_SEVERITY_t severityLevel);
173 
174 /*****************************************************************/
189  OPEN_LOG_SEVERITY_t *severityLevel);
190 
191 /*****************************************************************/
208  OPEN_CONTROL_t persistentLoggingMode);
209 
210 /*****************************************************************/
228  OPEN_LOG_SEVERITY_t severityLevel);
229 
230 /*****************************************************************/
246  OPEN_CONTROL_t *loggingPersistentMode);
247 
248 /*****************************************************************/
264  OPEN_LOG_SEVERITY_t *severityLevel);
265 
266 /*****************************************************************/
282  OPEN_CONTROL_t sysLogMode);
283 
284 /*****************************************************************/
299  OPEN_CONTROL_t *sysLogMode);
300 
301 /*****************************************************************/
320  uint32_t port);
321 
322 /*****************************************************************/
337  uint16_t *port);
338 
339 /*****************************************************************/
363  open_buffdesc *loggingHost);
364 
365 /*****************************************************************/
388  open_buffdesc *loggingHost, uint32_t port);
389 
390 /*****************************************************************/
412  open_buffdesc *loggingHost,
413  OPEN_LOG_SEVERITY_t severityLevel);
414 
415 /*****************************************************************/
434  open_buffdesc *loggingHost);
435 
436 /*****************************************************************/
454  open_buffdesc *loggingHost,
455  OPEN_LOG_SEVERITY_t *severityLevel);
456 
457 /*****************************************************************/
475  open_buffdesc *loggingHost,
476  uint16_t *port);
477 
478 /*****************************************************************/
497  open_buffdesc *loggingHost);
498 
499 /*****************************************************************/
513  uint32_t *maxLoggingHosts);
514 
515 /*****************************************************************/
530  uint32_t *logHostMaxAddrLen);
531 
532 /*****************************************************************/
550  open_buffdesc *logMessage,
551  OPEN_LOG_SEVERITY_t severityLevel);
552 
553 /*****************************************************************/
577 open_error_t openapiBufferedLogEntryNextGet(openapiClientHandle_t *client_handle, uint32_t *logIndex,
578  open_buffdesc *logEntry);
579 
580 /*****************************************************************/
593 
594 /*****************************************************************/
610  uint32_t *numberOfEntries);
611 
612 /*****************************************************************/
625 
626 /*****************************************************************/
642 
643 /*****************************************************************/
659 
660 /*****************************************************************/
675  OPEN_LOG_SEVERITY_t severity);
676 
677 /*****************************************************************/
692  OPEN_LOG_SEVERITY_t *severity);
693 
694 /*****************************************************************/
710 #endif
711