16 #ifndef SURGSIM_GRAPHICS_OSGLOG_H 17 #define SURGSIM_GRAPHICS_OSGLOG_H 32 class OsgLog :
public osg::NotifyHandler
50 virtual void notify(osg::NotifySeverity severity,
const char *message)
override;
53 std::shared_ptr<SurgSim::Framework::Logger>
m_logger;
60 #endif // SURGSIM_GRAPHICS_OSGLOG_H Definition: DriveElementFromInputBehavior.cpp:27
Enable logging of OSG through SurgSim Logging System To use this, an object of OsgLog class must be c...
Definition: OsgLog.h:32
The convenience header that provides the entirety of the logging API.
OsgLog()
Constructor If OSS_DEBUG is defined, set OSG's log level to the lowest (osg::DEBUG_FP).
Definition: OsgLog.cpp:26
std::shared_ptr< SurgSim::Framework::Logger > m_logger
Definition: OsgLog.h:53
virtual void notify(osg::NotifySeverity severity, const char *message) override
User defined derived log Method Based on log level 'severity', this method decides whether to log 'me...
Definition: OsgLog.cpp:33