◆ output()
void gramods::gmCore::OStreamMessageSink::output |
( |
Message |
msg | ) |
|
|
virtual |
Outputs the provided message to the implementation specific channel.
This method may be called concurrently from multiple thread and must therefore be thread safe.
Implements gramods::gmCore::MessageSink.
◆ setLevel()
Set the level of messages to output.
This is an integer typically following the level of importance in ConsoleLevel, inclusive.
XML-attribute: level
◆ setStream() [1/3]
void gramods::gmCore::OStreamMessageSink::setStream |
( |
std::ostream * |
s | ) |
|
|
inline |
Set the stream to use as output.
Use this if you do not want smart memory management, for example if your output stream is std::cout.
◆ setStream() [2/3]
void gramods::gmCore::OStreamMessageSink::setStream |
( |
std::shared_ptr< std::ostream > |
s | ) |
|
|
inline |
Set the stream to use as output.
Use this if you do want smart memory management, for example if the output stream is shared between objects and is not memory managed by the operating system.
◆ setStream() [3/3]
void gramods::gmCore::OStreamMessageSink::setStream |
( |
std::string |
name | ) |
|
Set the stream to use as output, as string.
Valid values are "out" and "err".
XML-attribute: stream
◆ setUseAnsiColor()
void gramods::gmCore::OStreamMessageSink::setUseAnsiColor |
( |
bool |
on | ) |
|
Activate or deactivate the use of ANSI color escape characters to emphasize error and warning messages.
XML-attribute: useAnsiColor
The documentation for this class was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmCore/include/gmCore/OStreamMessageSink.hh
- /home/karlu/private/program/gramods/modules/gmCore/src/OStreamMessageSink.cpp