NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 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,
56 
58 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
59 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
60 typedef enum dwSizes {
63 
67 
71 
75 } dwSizes;
76 
78 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
79 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
80 typedef struct dwSourceCodeLocation
81 {
83  int32_t lineNumber;
84  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
86 
88 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
89 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
90 typedef struct dwLogMessageInfo
91 {
96  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
98 
100 // coverity[misra_c_2012_rule_2_4_violation] Deviation Record: AV-NDAS-SWSADR-003
101 // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
102 typedef struct dwLogMessage
103 {
106  // coverity[misra_c_2012_rule_2_3_violation] Deviation Record: AV-NDAS-DWPROTO-SWSADR-006
107 } dwLogMessage;
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 
116 #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:105
dwSourceCodeLocation::lineNumber
int32_t lineNumber
Definition: LoggerDefs.h:83
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:66
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:70
DW_LOG_ERROR
@ DW_LOG_ERROR
Log Error information.
Definition: LoggerDefs.h:50
dwLogMessageInfo::location
dwSourceCodeLocation location
Definition: LoggerDefs.h:94
dwSourceCodeLocation::fileName
char8_t fileName[DW_LOGGER_FILE_NAME_SIZE]
Definition: LoggerDefs.h:82
dwLogMessageInfo::tag
char8_t tag[DW_LOGGER_TAG_SIZE]
Definition: LoggerDefs.h:93
dwLogMessage::info
dwLogMessageInfo info
Definition: LoggerDefs.h:104
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:80
dwLogMessageInfo::verbosity
dwLoggerVerbosity verbosity
Definition: LoggerDefs.h:92
char8_t
char char8_t
Definition: BasicTypes.h:47
dwSizes
dwSizes
Holds the maximum sizes for various strings.
Definition: LoggerDefs.h:60
dwLogMessageInfo
metatdata associated with a log message
Definition: LoggerDefs.h:90
dwLogMessage
a textual log message through, e.g., DW_LOG APIs
Definition: LoggerDefs.h:102
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:62
DW_LOG_SILENT
@ DW_LOG_SILENT
Log nothing.
Definition: LoggerDefs.h:54
dwLogMessageInfo::threadId
char8_t threadId[DW_LOGGER_TAG_SIZE]
Definition: LoggerDefs.h:95
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:74
DW_LOG_DEBUG
@ DW_LOG_DEBUG
Log Debug information.
Definition: LoggerDefs.h:47