30 #include <OgreLogManager.h> 47 #if OGRE_VERSION >= ((1 << 16) | (8 << 8)) 49 Ogre::LogMessageLevel lml,
52 bool& skipThisMessage)
override 64 Ogre::LogMessageLevel lml,
83 preference_ = StandardOut;
92 preference_ = FileLogging;
99 preference_ = NoLogging;
110 Ogre::LogManager* log_manager = Ogre::LogManager::getSingletonPtr();
111 if (log_manager ==
nullptr)
113 log_manager =
new Ogre::LogManager();
115 Ogre::Log* l = log_manager->createLog(filename_.toStdString(),
false,
false, preference_ == NoLogging);
119 if (preference_ == StandardOut)
virtual void messageLogged(const Ogre::String &message, Ogre::LogMessageLevel lml, bool maskDebug, const Ogre::String &)
static void configureLogging()
Configure the Ogre::LogManager to give the currently selected behavior. This must be called before Og...
static void noLog()
Disable Ogre logging entirely. This is the default.
static void useLogFile(const QString &filename="Ogre.log")
Configure Ogre to write output to the given log file name. If file name is a relative path...
#define ROS_LOG(level, name,...)
~RosLogListener() override
#define ROSCONSOLE_DEFAULT_NAME
static Preference preference_
static void useRosLog()
Configure Ogre to write output to the ROS logger.
Ogre::LogMessageLevel min_lml