13#include <vlutil/vlPrint.h>
19#define __FILENAME__ (strrchr(__FILE__, '\\') ? strrchr(__FILE__, '\\') + 1 : __FILE__)
64#define LOG_FATAL(channel) DtVreFatal(channel, __FUNCTION__)
69#define LOG_WARN(channel) DtVreWarn(channel, __FUNCTION__)
74#define LOG_INFO(channel) DtVreInfo(channel, __FUNCTION__)
79#define LOG_VERBOSE(channel) DtVreVerbose(channel, __FUNCTION__)
84#define LOG_DEBUG(channel) DtVreDebug(channel, __FUNCTION__)
89#define OBJCON_FATAL(channel) \
90 entity()->objectConsoleError() << "FATAL[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
95#define OBJCON_WARN(channel) \
96 entity()->objectConsoleWarn() << "WARN[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
101#define OBJCON_INFO(channel) \
102 entity()->objectConsoleInfo() << "INFO[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
107#define OBJCON_VERBOSE(channel) \
108 entity()->objectConsoleVerbose() << "VERBOSE[" << channel << "] " << logTimestamp() << " " << __FUNCTION__ << ": "
113#define OBJCON_DEBUG(channel) \
114 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
UTIL_DLL DtOutputStream & DtVreInfo(const std::string &channel, const std::string &function)
Logs an informational message.
std::string UTIL_DLL logTimestamp()
Generates a timestamp string for log messages.
UTIL_DLL DtOutputStream & DtVreDebug(const std::string &channel, const std::string &function)
Logs a debug message.
UTIL_DLL DtOutputStream & DtVreWarn(const std::string &channel, const std::string &function)
Logs a warning message.
UTIL_DLL DtOutputStream & DtVreVerbose(const std::string &channel, const std::string &function)
Logs a verbose message (more detailed than info)
UTIL_DLL DtOutputStream & DtVreFatal(const std::string &channel, const std::string &function)
Logs a fatal error message.