winss
|
A stream writer for writing logs. More...
#include <log_stream_wrapper.hpp>
Public Member Functions | |
LogStreamWriter () | |
Log stream writer constructor. More... | |
LogStreamWriter (const LogStreamWriter &)=delete | |
No copy. More... | |
LogStreamWriter (LogStreamWriter &&)=delete | |
No move. More... | |
virtual bool | Open (fs::path log_path) |
Opens the file stream at the given location. More... | |
virtual void | Write (const std::string &line) |
Writes the given string to the log stream. More... | |
virtual void | WriteLine () |
Writes a line terminator to the stream. More... | |
virtual std::streamoff | GetPos () |
Gets the current position in the stream. More... | |
virtual void | Close () |
Closes the currently open stream. More... | |
LogStreamWriter & | operator= (const LogStreamWriter &)=delete |
No copy. More... | |
LogStreamWriter & | operator= (LogStreamWriter &&)=delete |
No move. More... | |
virtual | ~LogStreamWriter () |
Log stream writer destructor. More... | |
A stream writer for writing logs.
|
inline |
Log stream writer constructor.
References winss::LogStreamReader::operator=().
|
delete |
No copy.
|
delete |
No move.
|
virtual |
Log stream writer destructor.
|
virtual |
Closes the currently open stream.
Referenced by winss::LogTmpl< TMutex >::Rotate(), and winss::LogTmpl< TMutex >::Start().
|
virtual |
Gets the current position in the stream.
Referenced by winss::LogTmpl< TMutex >::Start().
|
virtual |
Opens the file stream at the given location.
[in] | log_path | The location of the log file. |
Referenced by winss::LogTmpl< TMutex >::Rotate(), and winss::LogTmpl< TMutex >::Start().
|
delete |
No copy.
|
delete |
No move.
|
virtual |
Writes the given string to the log stream.
[in] | line | The log line as a string. |
Referenced by winss::LogTmpl< TMutex >::Start().
|
virtual |
Writes a line terminator to the stream.
Referenced by winss::LogTmpl< TMutex >::Start().