Diarkis C++Client Library API Document
StreamLoggerBackend Class Reference

Interface class for DebugLoggerBackend and FileLoggerBackend. More...

#include <StreamLoggerBackend.h>

Inheritance diagram for StreamLoggerBackend:
Collaboration diagram for StreamLoggerBackend:

Public Member Functions

 StreamLoggerBackend (std::ostream &targetLog_)
 
 StreamLoggerBackend (StreamLoggerBackend &)=delete
 
 StreamLoggerBackend (StreamLoggerBackend &&)=delete
 
std::ostream & GetTargetLog () const
 
virtual Result Log (const Diarkis::StdString &message, bool includeNewLine) override
 Outputs a log of specified messages. More...
 

Detailed Description

Interface class for DebugLoggerBackend and FileLoggerBackend.

Constructor & Destructor Documentation

◆ StreamLoggerBackend() [1/3]

StreamLoggerBackend::StreamLoggerBackend ( std::ostream &  targetLog_)

◆ StreamLoggerBackend() [2/3]

StreamLoggerBackend::StreamLoggerBackend ( StreamLoggerBackend )
delete

◆ StreamLoggerBackend() [3/3]

StreamLoggerBackend::StreamLoggerBackend ( StreamLoggerBackend &&  )
delete

Member Function Documentation

◆ GetTargetLog()

std::ostream & StreamLoggerBackend::GetTargetLog ( ) const
Here is the caller graph for this function:

◆ Log()

Result StreamLoggerBackend::Log ( const Diarkis::StdString message,
bool  includeNewLine 
)
overridevirtual

Outputs a log of specified messages.

Parameters
[in]messageMessage to log output
[in]includeNewLineWhether to add a new line or not true=include

Implements ILoggerBackend.

Reimplemented in FileLoggerBackend, and DebugLoggerBackend.

Here is the call graph for this function:
Here is the caller graph for this function:

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