V-Gears 0
Free Final Fantasy VII engine.
Logger.h File Reference
#include <OgreLogManager.h>
#include <OgreString.h>
#include <OgreStringConverter.h>
#include <string>
Include dependency graph for Logger.h:

Go to the source code of this file.

Macros

#define LOG_ERROR(message)
 Prints an error log message. More...
 
#define LOG_WARNING(message)
 Prints awarning log message. More...
 
#define LOG_TRIVIAL(message)
 Prints a trivial log message. More...
 
#define LOG_CONSOLE(message)
 Prints a log message to the console with normal priority. More...
 
#define LOG_DEBUG_EX(message)
 Prints an explicit debug message to the log. More...
 
#define LOG_DEBUG(message)
 Prints a debug message to the log. More...
 

Macro Definition Documentation

◆ LOG_CONSOLE

#define LOG_CONSOLE (   message)
Value:
Ogre::LogManager::getSingleton().logMessage( \
message, Ogre::LML_NORMAL \
)

Prints a log message to the console with normal priority.

Parameters
[in]messageMessage to print.

◆ LOG_DEBUG

#define LOG_DEBUG (   message)
Value:
Ogre::LogManager::getSingleton().logMessage( \
"[DEBUG] (" + std::string(__PRETTY_FUNCTION__) + "): " + message, \
Ogre::LML_CRITICAL \
)

Prints a debug message to the log.

It includes the function name. The priority is critical

Parameters
[in]messageMessage to print.

◆ LOG_DEBUG_EX

#define LOG_DEBUG_EX (   message)
Value:
Ogre::LogManager::getSingleton().logMessage( \
"[DEBUG] (" + __FILE__ + " " + Ogre::StringConverter::toString(__LINE__) \
+ ")(" + std::string(__PRETTY_FUNCTION__) + "): " + message, \
Ogre::LML_CRITICAL \
)

Prints an explicit debug message to the log.

It includes the filename, line, and function name. The priority is critical

Parameters
[in]messageMessage to print.

◆ LOG_ERROR

#define LOG_ERROR (   message)
Value:
Ogre::LogManager::getSingleton().logMessage( \
"[ERROR] " + Ogre::String(__FILE__) + " " \
+ Ogre::StringConverter::toString(__LINE__) + ": " + message, \
Ogre::LML_CRITICAL \
)
Ogre::String String
Definition: TypeDefine.h:37

Prints an error log message.

Parameters
[in]messageMessage to print.

◆ LOG_TRIVIAL

#define LOG_TRIVIAL (   message)
Value:
Ogre::LogManager::getSingleton().logMessage( \
message, Ogre::LML_TRIVIAL \
)

Prints a trivial log message.

Parameters
[in]messageMessage to print.

◆ LOG_WARNING

#define LOG_WARNING (   message)
Value:
Ogre::LogManager::getSingleton().logMessage( \
"[WARNING] " + Ogre::String(__FILE__) + " " \
+ Ogre::StringConverter::toString(__LINE__) + ": " + message, \
Ogre::LML_NORMAL \
)

Prints awarning log message.

Parameters
[in]messageMessage to print.