 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
19 #define g_LogMgr agx::Logger::instance()
21 #define LOGGER() agx::Logger::instance()->getNotify()
22 #define LOGGER_ERROR() LOGGER() << LOGGER().NOTIFY_ERROR()
23 #define LOGGER_WARNING() LOGGER() << LOGGER().NOTIFY_WARNING()
24 #define LOGGER_INFO() LOGGER() << LOGGER().NOTIFY_INFO()
25 #define LOGGER_DEBUG() LOGGER() << LOGGER().NOTIFY_DEBUG()
26 #define LOGGER_END() LOGGER().NOTIFY_END()
27 #define LOGGER_ENDL() std::endl << LOGGER().NOTIFY_END()
29 #define LOGGER_ERROR_IF_nullptr(Y) NOTIFY_ERROR_IF_nullptr(LOGGER(), Y)
30 #define LOGGER_ERROR_IF_TRUE(Y) NOTIFY_ERROR_IF_TRUE(LOGGER(), Y)
31 #define LOGGER_ERROR_IF_FALSE(Y) NOTIFY_ERROR_IF_FALSE(LOGGER(), Y)
33 #define LOGGER_WARNING_IF_nullptr(Y) NOTIFY_ERROR_IF_nullptr(LOGGER(), Y)
34 #define LOGGER_ERROR_IF_TRUE(Y) NOTIFY_ERROR_IF_TRUE(LOGGER(), Y)
35 #define LOGGER_ERROR_IF_FALSE(Y) NOTIFY_ERROR_IF_FALSE(LOGGER(), Y)
36 #define LOGGER_STATE(X) LOGGER().NOTIFY_STATE(X)
57 static Logger *instance(
void );
60 SINGLETON_CLASSNAME_METHOD();
70 bool openLogfile(
const agx::String& path,
bool overwrite,
bool closeAndOpen );
void AGXCORE_EXPORT logWarning(std::string str)
void AGXCORE_EXPORT logInfo(std::string str)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Smart pointer for handling referenced counted objects.
void AGXPHYSICS_EXPORT shutdown()
Shutdown agx.
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
Logger is a class for writing information, debug info, warnings but also throwing exceptions in a str...
#define ADD_NOTIFY_FUNCTIONALITY_TO_CLASS()
void AGXCORE_EXPORT logError(std::string str)
void AGXCORE_EXPORT logDebug(std::string str)
ref_ptr< Logger > LoggerRef