Class OutStream¶
Defined in File Logger.hpp
Class Documentation¶
-
class
Acts::Logging
::
OutStream
¶ thread-safe output stream
This classes caches the output internally and only flushes it to the destination stream once it is destroyed. Using local instances of this class therefore provides a thread-safe way for printing debug messages.
Public Functions
-
OutStream
(OutputFunc output)¶ construct stream object
- Parameters
[in] output
: function object called for flushing the internal cache
-
~OutStream
()¶ destructor
When calling the destructor, the internal cache is flushed using the function provided during construction.
-