Convenience interface to Ogre logging. More...
#include <ogre_logging.h>
Static Public Member Functions | |
static void | configureLogging () |
Configure the Ogre::LogManager to give the currently selected behavior. This must be called before Ogre::Root is instantiated! | |
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, it will be relative to the directory which is current when the program is run. Default is "Ogre.log". | |
static void | useRosLog () |
Configure Ogre to write output to the ROS logger. | |
Private Types | |
enum | Preference { StandardOut, FileLogging, NoLogging } |
Static Private Attributes | |
static QString | filename_ |
static Preference | preference_ = OgreLogging::NoLogging |
Convenience interface to Ogre logging.
This all-static class wraps Ogre::LogManager into 3 easy options: no logging, standard out, or file logging. The option-selection calls (useStandardOut(), useLogFile(), and noLog() must be called before configureLogging(). configureLogging(), in turn, must be called before any Ogre::Root object is instantiated. configureLogging() is called at the right time by the RenderSystem constructor, so you generally won't need to call it explicitly.
Definition at line 46 of file ogre_logging.h.
enum rviz::OgreLogging::Preference [private] |
Definition at line 67 of file ogre_logging.h.
void rviz::OgreLogging::configureLogging | ( | ) | [static] |
Configure the Ogre::LogManager to give the currently selected behavior. This must be called before Ogre::Root is instantiated!
Configure the Ogre::LogManager to give the behavior selected by the most recent call to enableStandardOut(), setLogFile(), or disable(). This must be called before Ogre::Root is instantiated! Called inside RenderSystem constructor.
Definition at line 99 of file ogre_logging.cpp.
void rviz::OgreLogging::noLog | ( | ) | [static] |
Disable Ogre logging entirely. This is the default.
Definition at line 89 of file ogre_logging.cpp.
void rviz::OgreLogging::useLogFile | ( | const QString & | filename = "Ogre.log" | ) | [static] |
Configure Ogre to write output to the given log file name. If file name is a relative path, it will be relative to the directory which is current when the program is run. Default is "Ogre.log".
Definition at line 82 of file ogre_logging.cpp.
void rviz::OgreLogging::useRosLog | ( | ) | [static] |
Configure Ogre to write output to the ROS logger.
Configure Ogre to write output to standard out.
Definition at line 73 of file ogre_logging.cpp.
QString rviz::OgreLogging::filename_ [static, private] |
Definition at line 69 of file ogre_logging.h.
OgreLogging::Preference rviz::OgreLogging::preference_ = OgreLogging::NoLogging [static, private] |
Definition at line 68 of file ogre_logging.h.