Plasma Engine  2.0
Loading...
Searching...
No Matches
HTMLWriter.h
1#pragma once
2
3#include <Foundation/IO/FileSystem/FileWriter.h>
4#include <Foundation/Logging/Log.h>
5
6namespace plLogWriter
7{
8
13 class PL_FOUNDATION_DLL HTML
14 {
15 public:
16 ~HTML();
17
19 void LogMessageHandler(const plLoggingEventData& eventData);
20
22 void BeginLog(plStringView sFile, plStringView sAppTitle);
23
25 void EndLog();
26
29 const plFileWriter& GetOpenedLogFile() const;
30
32 void SetTimestampMode(plLog::TimestampMode mode);
33
34 private:
35 void WriteString(plStringView sText, plUInt32 uiColor);
36
37 plFileWriter m_File;
38
40 };
41} // namespace plLogWriter
The default class to use to write data to a file, implements the plStreamWriter interface.
Definition FileWriter.h:12
TimestampMode
This enum is used in context of outputting timestamp information to indicate a formatting for said ti...
Definition Log.h:359
@ None
No timestamp will be added at all.
A log writer that writes out log messages to an HTML file.
Definition HTMLWriter.h:14
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
The data that is sent through plLogInterface.
Definition Log.h:50