Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

mortic::ILogManager Class Reference

Prints messages to a log file. More...

Inheritance diagram for mortic::ILogManager:

mortic::IObject List of all members.

Public Member Functions

 ILogManager (IRoot *root)
 Never use this, use IRoot::getLogManager().
virtual ~ILogManager ()
 Never use this, use drop().
virtual void setLogLevel (enum ELogLevel level)=0
 Sets the log level.
virtual enum ELogLevel getLogLevel ()=0
 Get the log level.
virtual void log (std::string text, enum EManagerType type=EMT_ROOT, enum ELogLevel level=ELL_NOTIFY)=0
 Log a message.

Detailed Description

Prints messages to a log file.

This class prints logging messages to standard out as well as to a formatted HTML file for easy reading. You should always get this class from IRoot::getLogManager(). The log manager loads the following settings from configuration:

        file - the VFS filename to write to
        level - the lowercase name of the log level to use, eg. "pessimistic"

Definition at line 60 of file ILogManager.h.


Constructor & Destructor Documentation

mortic::ILogManager::ILogManager IRoot root  )  [inline]
 

Never use this, use IRoot::getLogManager().

Definition at line 66 of file ILogManager.h.

virtual mortic::ILogManager::~ILogManager  )  [inline, virtual]
 

Never use this, use drop().

Definition at line 72 of file ILogManager.h.


Member Function Documentation

virtual enum ELogLevel mortic::ILogManager::getLogLevel  )  [pure virtual]
 

Get the log level.

For an explanaition of a log level, see ELogLevel.

Returns:
the level being logged at
See also:
ELogLevel setLogLevel()

virtual void mortic::ILogManager::log std::string  text,
enum EManagerType  type = EMT_ROOT,
enum ELogLevel  level = ELL_NOTIFY
[pure virtual]
 

Log a message.

This function logs a message with a source and a level. The source could also be considered a category, and different categories have different colors in the HTML log.

  • text - the text to log
  • type - where the message comes from. EMT_ROOT for generic messages.
  • level - the level to log this message at

virtual void mortic::ILogManager::setLogLevel enum ELogLevel  level  )  [pure virtual]
 

Sets the log level.

For an explanaition of a log level, see ELogLevel.


Generated on Sat Dec 30 21:21:59 2006 for mortic by  doxygen 1.4.4