XII Release 0.1.0
Loading...
Searching...
No Matches
xiiLogWriter::HTML Class Reference

#include <HTMLWriter.h>

Public Member Functions

 ~HTML ()
 Copyright (c) Theophilus Eriata. All Rights Reserved.
void LogMessageHandler (const xiiLoggingEventData &eventData)
 Register this at xiiLog to write all log messages to an HTML file.
void BeginLog (xiiStringView sFile, xiiStringView sAppTitle)
 Opens the given file for writing the log. From now on all incoming log messages are written into it.
void EndLog ()
 Closes the HTML file and stops logging the incoming message.
const xiiFileWriter & GetOpenedLogFile () const
void SetTimestampMode (xiiLog::TimestampMode mode)
 Allows to indicate in what form timestamps should be added to log messages.

Detailed Description

A log writer that writes out log messages to an HTML file.

Create an instance of this class, register the LogMessageHandler at xiiLog and pass the pointer to the instance as the pPassThrough argument to it.

Member Function Documentation

◆ GetOpenedLogFile()

const xiiFileWriter & xiiLogWriter::HTML::GetOpenedLogFile ( ) const

Returns the name of the log-file that was really opened. Might be slightly different than what was given to BeginLog, to allow parallel execution of the same application.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Logging/HTMLWriter.h
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Logging/Implementation/HTMLWriter.cpp