27 #include <osg/ArgumentParser> 49 osg::ArgumentParser arguments(&argc, argv);
50 arguments.read(
"--map", mapName);
74 if (!logFileName.empty())
static const std::string LOG_ERROR_STR("Error")
String value for ERROR Logging level.
static void SetFileName(const std::string &name)
Change the name of the log file (defaults to "TrueRealityLog.html")
static void SetAllOutputStreamBits(unsigned int option)
The same as above, but it sets the bits on ALL active log instances.
static const std::string LOG_WARNING_STR("Warning")
String value for WARNING Logging level.
static const std::string LOG_DEBUG_STR("Debug")
String value for DEBUG Logging level.
static void SetAllLogLevels(LogLevel newLevel)
Set the LogLevel for all existing Log instances.
static const std::string LOG_ALWAYS_STR("Always")
String value for ALWAYS Logging level.
const BuildType TR_BUILD_TYPE
Defines TR Build Types.
#define LOG_A(msg)
Log an ALWAYS message.
void TR_UTIL_EXPORT SetupLoggingOptions(const std::string &logFileName, const std::string &logLevel)
Sets up all the default logging options for the software.
static const std::string LOG_INFO_STR("Info")
String value for INFO Logging level.
void TR_UTIL_EXPORT ParseMapNameArgument(int argc, char **argv, std::string &mapName)
Finds and returns the name of the map to be loaded from the command line.
static Log & GetInstance(const std::string &name=Log::LOG_DEFAULT_NAME)
Retrieve singleton instance of the log class for a give string name.