lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Public Types | Public Member Functions
lean::logging::basic_log_stream< Char, Traits > Class Template Reference

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>

Inheritance diagram for lean::logging::basic_log_stream< Char, Traits >:
lean::logging::log_target

List of all members.

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.

Detailed Description

template<class Char = char, class Traits = std::char_traits<Char>>
class lean::logging::basic_log_stream< Char, Traits >

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.


The documentation for this class was generated from the following file: