lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Log class. More...
#include <log.h>
Inherits noncopyable.
Public Member Functions | |
LEAN_MAYBE_EXPORT | log (log_target *initialTarget=nullptr) |
Constructor. | |
LEAN_MAYBE_EXPORT | ~log () |
Destructor. | |
LEAN_MAYBE_EXPORT void | add_target (log_target *target) |
Adds the given target to this log. This method is thread-safe. | |
LEAN_MAYBE_EXPORT void | remove_target (log_target *target) |
Removes the given target from this log. This method is thread-safe. | |
LEAN_MAYBE_EXPORT void | print (const char_ntri &message) |
Prints the given message. This method is thread-safe. | |
Friends | |
class | log_stream_out |
Log class.