lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Log stream class that prints any given input to a given stream. As streams are not guaranteed to be thread-safe, it is recommended to only ever hold one wrapper for any given stream at a time. More...
#include <log_stream.h>
Public Types | |
typedef ::std::basic_ostream < Char, Traits > | stream_type |
Type of the stream wrapped. | |
Public Member Functions | |
basic_log_stream (stream_type *stream) | |
Wraps the given stream for logging. | |
void | print (const char_ntri &message) |
Prints the given message to the log stream. This method is thread-safe. |
Log stream class that prints any given input to a given stream. As streams are not guaranteed to be thread-safe, it is recommended to only ever hold one wrapper for any given stream at a time.