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