|
AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
|
inline |
Log a message using, no formatting.
Explicitly log a message, no formatting applied.
(Might be more efficient then LogF() with no formatting, but given how efficient fmt::format can be, that is unclear.)
This override of LogNF() takes an ostream argument and also outputs the message there.
One typical use of this method would be in a development process where you want messages to go to std::err/stdout for debugging/development, but when completed, you want them only in the log file. It is easy to then just find all occurrences of LogNF() in the file and remove the first argument, so that it just goes to the log file.
A second typical use is where an error has occurred, and you want to write the message both to the log file and to say std::err.
| ostream | The stream to also output the message to. A new-line is also output after the message. |
| level | The logging level. One of the D2LOG_ macro values |
| prefix | A prefix to the log message, often indicting the function which makes the call. |
| message | A string to output. |
References drama::CreateRunDramaTask(), and LogNF().