NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
LoggerDefs.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2016-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 #ifndef DW_CORE_LOGGER_LOGGERDEFS_H_
13 #define DW_CORE_LOGGER_LOGGERDEFS_H_
14 // Generated by dwProto from logger_defs.proto DO NOT EDIT BY HAND!
15 // See //3rdparty/shared/dwproto/README.md for more information
16 
36 #include <dw/pbwire/BasicTypes.h>
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
43 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
44 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
45 typedef enum dwLoggerVerbosity {
47  DW_LOG_DEBUG = 1 << 12,
48  DW_LOG_INFO = 1 << 13,
49  DW_LOG_WARN = (1 << 14) - 4096,
50  DW_LOG_ERROR = 1 << 14,
51 
53  DW_LOG_FATAL = (1 << 14) + (1 << 12),
54  DW_LOG_SILENT = (1 << 15) - 4096,
55  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
57 
59 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
60 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
61 typedef enum dwSizes {
64 
68 
72 
76  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
77 } dwSizes;
78 
80 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
81 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
82 typedef struct dwSourceCodeLocation
83 {
85  int32_t lineNumber;
86  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
88 
90 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
91 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
92 typedef struct dwLogMessageInfo
93 {
98  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
100 
102 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
103 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
104 typedef struct dwLogMessage
105 {
108  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
109 } dwLogMessage;
110 
111 #ifdef __cplusplus
112 }
113 #endif
114 
118 #endif // DW_CORE_LOGGER_LOGGERDEFS_H_
DW_LOG_VERBOSE
@ DW_LOG_VERBOSE
Log everything; default log level.
Definition: LoggerDefs.h:46
dwSourceCodeLocation
struct dwSourceCodeLocation dwSourceCodeLocation
Where in the source code a particular log message originates.
dwLogMessage::message
char8_t message[DW_LOGGER_MESSAGE_SIZE]
Definition: LoggerDefs.h:107
dwSourceCodeLocation::lineNumber
int32_t lineNumber
Definition: LoggerDefs.h:85
DW_LOG_INFO
@ DW_LOG_INFO
Log Notice information.
Definition: LoggerDefs.h:48
DW_LOGGER_TAG_SIZE
@ DW_LOGGER_TAG_SIZE
The maximum number of characters in either a tag or thread id string (including null terminator)
Definition: LoggerDefs.h:67
DW_LOGGER_FILE_NAME_SIZE
@ DW_LOGGER_FILE_NAME_SIZE
The maximum number of characters in a file name string (including null terminator)
Definition: LoggerDefs.h:71
DW_LOG_ERROR
@ DW_LOG_ERROR
Log Error information.
Definition: LoggerDefs.h:50
dwLogMessageInfo::location
dwSourceCodeLocation location
Definition: LoggerDefs.h:96
dwSourceCodeLocation::fileName
char8_t fileName[DW_LOGGER_FILE_NAME_SIZE]
Definition: LoggerDefs.h:84
dwLogMessageInfo::tag
char8_t tag[DW_LOGGER_TAG_SIZE]
Definition: LoggerDefs.h:95
dwLogMessage::info
dwLogMessageInfo info
Definition: LoggerDefs.h:106
DW_LOG_WARN
@ DW_LOG_WARN
Log Warning information.
Definition: LoggerDefs.h:49
DW_LOG_FATAL
@ DW_LOG_FATAL
Log Fatal information which cause premature termination.
Definition: LoggerDefs.h:53
dwSourceCodeLocation
Where in the source code a particular log message originates.
Definition: LoggerDefs.h:82
dwLogMessageInfo::verbosity
dwLoggerVerbosity verbosity
Definition: LoggerDefs.h:94
char8_t
char char8_t
Definition: core/base/BasicTypes.h:55
BasicTypes.h
dwSizes
dwSizes
Holds the maximum sizes for various strings.
Definition: LoggerDefs.h:61
dwLogMessageInfo
metatdata associated with a log message
Definition: LoggerDefs.h:92
dwLogMessage
a textual log message through, e.g., DW_LOG APIs
Definition: LoggerDefs.h:104
dwLoggerVerbosity
dwLoggerVerbosity
Holds the verbosity level.
Definition: LoggerDefs.h:45
DW_LOGGER_SIZE_UNSPECIFIED
@ DW_LOGGER_SIZE_UNSPECIFIED
This is just here to make proto policy rules happy.
Definition: LoggerDefs.h:63
DW_LOG_SILENT
@ DW_LOG_SILENT
Log nothing.
Definition: LoggerDefs.h:54
dwLogMessageInfo::threadId
char8_t threadId[DW_LOGGER_TAG_SIZE]
Definition: LoggerDefs.h:97
dwLogMessage
struct dwLogMessage dwLogMessage
a textual log message through, e.g., DW_LOG APIs
dwLogMessageInfo
struct dwLogMessageInfo dwLogMessageInfo
metatdata associated with a log message
DW_LOGGER_MESSAGE_SIZE
@ DW_LOGGER_MESSAGE_SIZE
The maximum number of characters in a log message string (including null terminator)
Definition: LoggerDefs.h:75
DW_LOG_DEBUG
@ DW_LOG_DEBUG
Log Debug information.
Definition: LoggerDefs.h:47