AGX Dynamics 2.42.2.1
Loading...
Searching...
No Matches
Logger.h File Reference
#include <agx/agx.h>
#include <agx/Notify.h>
#include <agx/Singleton.h>

Go to the source code of this file.

Classes

class  agx::Logger
 Logger is a class for writing information, debug info, warnings but also throwing exceptions in a stream-alike way. More...
 

Namespaces

namespace  agx
 The agx namespace contains the dynamics/math part of the AGX Dynamics API.
 

Macros

#define g_LogMgr   agx::Logger::instance()
 
#define LOGGER()   agx::Logger::instance()->getNotify()
 
#define LOGGER_DEBUG()   LOGGER() << LOGGER().NOTIFY_DEBUG()
 
#define LOGGER_END()   LOGGER().NOTIFY_END()
 
#define LOGGER_ENDL()   std::endl << LOGGER().NOTIFY_END()
 
#define LOGGER_ERROR()   LOGGER() << LOGGER().NOTIFY_ERROR()
 
#define LOGGER_ERROR_IF_FALSE(Y)   NOTIFY_ERROR_IF_FALSE(LOGGER(), Y)
 
#define LOGGER_ERROR_IF_FALSE(Y)   NOTIFY_ERROR_IF_FALSE(LOGGER(), Y)
 
#define LOGGER_ERROR_IF_nullptr(Y)   NOTIFY_ERROR_IF_nullptr(LOGGER(), Y)
 
#define LOGGER_ERROR_IF_TRUE(Y)   NOTIFY_ERROR_IF_TRUE(LOGGER(), Y)
 
#define LOGGER_ERROR_IF_TRUE(Y)   NOTIFY_ERROR_IF_TRUE(LOGGER(), Y)
 
#define LOGGER_INFO()   LOGGER() << LOGGER().NOTIFY_INFO()
 
#define LOGGER_STATE(X)   LOGGER().NOTIFY_STATE(X)
 
#define LOGGER_WARNING()   LOGGER() << LOGGER().NOTIFY_WARNING()
 
#define LOGGER_WARNING_IF_nullptr(Y)   NOTIFY_ERROR_IF_nullptr(LOGGER(), Y)
 

Typedefs

typedef ref_ptr< Logger > agx::LoggerRef
 

Macro Definition Documentation

◆ g_LogMgr

#define g_LogMgr   agx::Logger::instance()

Definition at line 19 of file Logger.h.

◆ LOGGER

#define LOGGER ( )    agx::Logger::instance()->getNotify()

Definition at line 21 of file Logger.h.

◆ LOGGER_DEBUG

#define LOGGER_DEBUG ( )    LOGGER() << LOGGER().NOTIFY_DEBUG()

Definition at line 25 of file Logger.h.

◆ LOGGER_END

#define LOGGER_END ( )    LOGGER().NOTIFY_END()

Definition at line 26 of file Logger.h.

◆ LOGGER_ENDL

#define LOGGER_ENDL ( )    std::endl << LOGGER().NOTIFY_END()

Definition at line 27 of file Logger.h.

◆ LOGGER_ERROR

#define LOGGER_ERROR ( )    LOGGER() << LOGGER().NOTIFY_ERROR()

Definition at line 22 of file Logger.h.

◆ LOGGER_ERROR_IF_FALSE [1/2]

#define LOGGER_ERROR_IF_FALSE (   Y)    NOTIFY_ERROR_IF_FALSE(LOGGER(), Y)

Definition at line 35 of file Logger.h.

◆ LOGGER_ERROR_IF_FALSE [2/2]

#define LOGGER_ERROR_IF_FALSE (   Y)    NOTIFY_ERROR_IF_FALSE(LOGGER(), Y)

Definition at line 35 of file Logger.h.

◆ LOGGER_ERROR_IF_nullptr

#define LOGGER_ERROR_IF_nullptr (   Y)    NOTIFY_ERROR_IF_nullptr(LOGGER(), Y)

Definition at line 29 of file Logger.h.

◆ LOGGER_ERROR_IF_TRUE [1/2]

#define LOGGER_ERROR_IF_TRUE (   Y)    NOTIFY_ERROR_IF_TRUE(LOGGER(), Y)

Definition at line 34 of file Logger.h.

◆ LOGGER_ERROR_IF_TRUE [2/2]

#define LOGGER_ERROR_IF_TRUE (   Y)    NOTIFY_ERROR_IF_TRUE(LOGGER(), Y)

Definition at line 34 of file Logger.h.

◆ LOGGER_INFO

#define LOGGER_INFO ( )    LOGGER() << LOGGER().NOTIFY_INFO()

Definition at line 24 of file Logger.h.

◆ LOGGER_STATE

#define LOGGER_STATE (   X)    LOGGER().NOTIFY_STATE(X)

Definition at line 36 of file Logger.h.

◆ LOGGER_WARNING

#define LOGGER_WARNING ( )    LOGGER() << LOGGER().NOTIFY_WARNING()

Definition at line 23 of file Logger.h.

◆ LOGGER_WARNING_IF_nullptr

#define LOGGER_WARNING_IF_nullptr (   Y)    NOTIFY_ERROR_IF_nullptr(LOGGER(), Y)

Definition at line 33 of file Logger.h.