#include <Workspace/Core/AppWide/logger.h>
◆ Styles
Enumerator |
---|
Warning | |
Error | |
Preformat | |
◆ Logger() [1/2]
◆ Logger() [2/2]
The copy constructor must clone the log mode, since we own it and can't share the log mode object with logger.
◆ ~Logger()
◆ ErrorOff()
std::string ErrorOff |
( |
| ) |
const |
◆ ErrorOn()
std::string ErrorOn |
( |
| ) |
const |
◆ GetLog()
std::ostream & GetLog |
( |
| ) |
const |
- Returns
- The log stream currently in effect for this object. Use this in place of std::cout for all logging in the subclass.
◆ GetLogMode()
const LogMode & GetLogMode |
( |
| ) |
const |
- Returns
- The log mode object that controls the style of text for various things like ErrorOn(), etc. It should only be used for passing to SetLogMode(LogMode*).
◆ LogChanged()
virtual void LogChanged |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ LogModeChanged()
virtual void LogModeChanged |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ SetLog()
void SetLog |
( |
std::ostream & |
log | ) |
|
Set the log stream to log. Subclasses may override LogChanged() to implement their own handling of log messages, since this function is called as the last thing SetLog does before returning.
◆ SetLogMode()
void SetLogMode |
( |
const LogMode & |
logMode | ) |
|
Set log mode to the same as logMode. Note that logMode is not used directly, but a copy is taken of it for internal use. Subclasses may override LogModeChanged() to implement their own handling of log messages, since this function is called as the last thing SetLogMode does before returning.
◆ SetLogModeHTML()
Set log mode to HTML output. Some tags will be inserted around warning and error messages.
◆ SetLogModePlainText()
void SetLogModePlainText |
( |
| ) |
|
◆ StyleOff()
◆ StyleOn()
◆ WarningOff()
std::string WarningOff |
( |
| ) |
const |
◆ WarningOn()
std::string WarningOn |
( |
| ) |
const |