Diarkis C++Client Library API Document
DebugLoggerBackend.h
Go to the documentation of this file.
1 // © 2019-2024 Diarkis Inc. All rights reserved.
2 
3 #pragma once
4 
5 #include <sstream>
6 #include "diarkis/common.h"
11 
12 using namespace Diarkis::System;
13 
21 {
22  public:
23  DebugLoggerBackend(bool bOutput);
24  virtual ~DebugLoggerBackend();
26  virtual Result Log(const Diarkis::StdString& message, bool includeNewLine = true) override;
27 
28  private:
29  std::stringstream ostream;
30  bool bOutputLog;
31 };
Diarkis::Results
Definition: results.autogen.h:10
Diarkis::StdString
Definition: common.h:432
StreamLoggerBackend
Interface class for DebugLoggerBackend and FileLoggerBackend.
Definition: StreamLoggerBackend.h:20
StreamLoggerBackend.h
Diarkis::Results::General::NOTHING_DONE
DIARKIS_EXPORT System::Result NOTHING_DONE
The call did nothing due to specific conditions. (status: TEMPORARY, value: 0xBC001052)
Logger.h
Diarkis::System::Result
Contains information about a specific result value. Can be compared against another Result structure....
Definition: result.h:37
GetNowTimeStr
void GetNowTimeStr(Diarkis::StdString &strTime)
Definition: misc.cpp:400
StreamLoggerBackend::Log
virtual Result Log(const Diarkis::StdString &message, bool includeNewLine) override
Outputs a log of specified messages.
Definition: StreamLoggerBackend.cpp:31
DebugLoggerBackend::~DebugLoggerBackend
virtual ~DebugLoggerBackend()
Definition: DebugLoggerBackend.cpp:52
misc.h
Diarkis::System
Definition: result.h:11
DebugLoggerBackend.h
DebugLoggerBackend::DebugLoggerBackend
DebugLoggerBackend(bool bOutput)
Definition: DebugLoggerBackend.cpp:46
DebugLoggerBackend
Class to output logs to debugger.
Definition: DebugLoggerBackend.h:20
result.h
DebugLoggerBackend::Log
virtual Result Log(const Diarkis::StdString &message, bool includeNewLine=true) override
Outputs a log of specified messages.
Definition: DebugLoggerBackend.cpp:56
common.h
Diarkis::Results::SUCCESS
DIARKIS_EXPORT System::Result SUCCESS
Everything went according to plan. (status: NONE, value: 0)
results.autogen.h
OutpuLogNX64
void OutpuLogNX64(Diarkis::StdString output)