50 #ifndef DW_CORE_LOGGER_H_ 51 #define DW_CORE_LOGGER_H_ 211 #endif // DW_CORE_LOGGER_H_ DW_API_PUBLIC dwStatus dwLogger_initializeExtended(dwLoggerCallback msgCallback)
Creates a new logger instance that provides meta-data with the message.
NVIDIA DriveWorks API: Core Types
char8_t const * msg
message to log
DW_API_PUBLIC dwStatus dwLogger_log(dwConstContextHandle_t const context, dwLoggerVerbosity const verbosity, char8_t const *const msg)
Logs message.
Log everything, default log level.
dwStatus
Status definition.
char8_t const * tag
name used to group related logs
char8_t const * threadId
identifier for thread
void(* dwLogCallback)(dwContextHandle_t context, dwLoggerVerbosity type, char8_t const *msg)
Defines a user callback method called by the SDK to log the output.
char8_t const * fileName
file name from where message was logged
DW_API_PUBLIC dwStatus dwLogger_release(void)
Release logger instance and free up used memory.
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwLogger_setLogLevel(dwLoggerVerbosity const verbosity)
Sets the verbosity level of the logger instance.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwLogger_enableTimestamps(bool const enabled)
Enable or disable logging of timestamps before each message.
dwLoggerVerbosity verbosity
how severe is the log
dwLoggerVerbosity
Holds the verbosity level.
DW_API_PUBLIC dwStatus dwLogger_logExtended(const dwLoggerMessage *msg)
Logs message.
DW_API_PUBLIC dwStatus dwLogger_initialize(dwLogCallback msgCallback)
Creates a new logger instance.
struct dwContextObject const * dwConstContextHandle_t
int32_t lineNum
line number where log originated from
DW_API_PUBLIC dwStatus dwLogger_setThreadId(char8_t const *threadId)
Set the name of the current thread that will be returned when using extended logger.
void(* dwLoggerCallback)(dwLoggerMessage const *msg)
Defines a user callback method called by the SDK to log the output with meta-data.
NVIDIA DriveWorks API: Core Status Methods
NVIDIA DriveWorks API: Core Exports