13#include <vlutil/vlPrint.h>
19#define __FILENAME__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
77UTIL_DLL void DtVreFatal(
const std::string& channel,
const std::string& function,
const char* format, ...);
86UTIL_DLL void DtVreWarn(
const std::string& channel,
const std::string& function,
const char* format, ...);
95UTIL_DLL void DtVreInfo(
const std::string& channel,
const std::string& function,
const char* format, ...);
113UTIL_DLL void DtVreDebug(
const std::string& channel,
const std::string& function,
const char* format, ...);
118#define LOG_FATAL_STREAM(channel) DtVreFatalStream(channel, __FUNCTION__)
123#define LOG_WARN_STREAM(channel) DtVreWarnStream(channel, __FUNCTION__)
128#define LOG_INFO_STREAM(channel) DtVreInfoStream(channel, __FUNCTION__)
133#define LOG_VERBOSE_STREAM(channel) DtVreVerboseStream(channel, __FUNCTION__)
138#define LOG_DEBUG_STREAM(channel) DtVreDebugStream(channel, __FUNCTION__)
144#define LOG_FATAL(channel, format, ...) DtVreFatal(channel, __FUNCTION__, format, ##__VA_ARGS__)
150#define LOG_WARN(channel, format, ...) DtVreWarn(channel, __FUNCTION__, format, ##__VA_ARGS__)
156#define LOG_INFO(channel, format, ...) DtVreInfo(channel, __FUNCTION__, format, ##__VA_ARGS__)
162#define LOG_VERBOSE(channel, format, ...) DtVreVerbose(channel, __FUNCTION__, format, ##__VA_ARGS__)
168#define LOG_DEBUG(channel, format, ...) DtVreDebug(channel, __FUNCTION__, format, ##__VA_ARGS__)
173#define OBJCON_FATAL(channel) \
174 entity()->objectConsoleError() << "FATAL[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
179#define OBJCON_WARN(channel) \
180 entity()->objectConsoleWarn() << "WARN[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
185#define OBJCON_INFO(channel) \
186 entity()->objectConsoleInfo() << "INFO[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
191#define OBJCON_VERBOSE(channel) \
192 entity()->objectConsoleVerbose() << "VERBOSE[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
197#define OBJCON_DEBUG(channel) \
198 entity()->objectConsoleDebug() << "DEBUG[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
Defines export macros for the VREngage Utility library.
#define UTIL_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
std::string UTIL_DLL logTimestamp()
Generates a timestamp string for log messages.
UTIL_DLL void DtVreFatal(const std::string &channel, const std::string &function, const char *format,...)
Logs a fatal message using printf-style formatting.
UTIL_DLL DtOutputStream & DtVreDebugStream(const std::string &channel, const std::string &function)
Logs a debug message.
UTIL_DLL void DtVreVerbose(const std::string &channel, const std::string &function, const char *format,...)
Logs a verbose message using printf-style formatting.
UTIL_DLL DtOutputStream & DtVreWarnStream(const std::string &channel, const std::string &function)
Logs a warning message.
UTIL_DLL DtOutputStream & DtVreVerboseStream(const std::string &channel, const std::string &function)
Logs a verbose message (more detailed than info)
UTIL_DLL DtOutputStream & DtVreInfoStream(const std::string &channel, const std::string &function)
Logs an informational message.
UTIL_DLL DtOutputStream & DtVreFatalStream(const std::string &channel, const std::string &function)
Logs a fatal error message.
UTIL_DLL void DtVreWarn(const std::string &channel, const std::string &function, const char *format,...)
Logs a warning message using printf-style formatting.
UTIL_DLL void DtVreInfo(const std::string &channel, const std::string &function, const char *format,...)
Logs an informational message using printf-style formatting.
UTIL_DLL void DtVreDebug(const std::string &channel, const std::string &function, const char *format,...)
Logs a debug message using printf-style formatting.