![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Internal functions used by the logger. More...
Functions | |
BLAM void | PrepareTextLog (std::string report_filename) |
Prepares the plain text log file for writing. More... | |
BLAM void | PrepareHTMLLog (std::string report_filename) |
Prepares the HTML log file. More... | |
BLAM std::string | PrepareHTMLTemplate (std::string log_title) |
Prepares the contents of the default HTML log template. More... | |
BLAM void | CreateReportViewerPage () |
Prepares the HTML file for the BlamReport Viewer. More... | |
BLAM void | LoadConsoleColors () |
Loads console color configuration. More... | |
Internal functions used by the logger.
Should not be called outside of the logger's own functions.
void Blam::Logger::Internal::CreateReportViewerPage | ( | ) |
Prepares the HTML file for the BlamReport Viewer.
The BlamReport Viewer is a brand spankin' new extension of Halo 2's HTML logging concept. What started as having stylized HTML log files to take advantage of the format eventually evolved into a nice viewer to access all Reports from one page.
This function will create the needed CSS, Images, and BlamReport Viewer page.
void Blam::Logger::Internal::LoadConsoleColors | ( | ) |
Loads console color configuration.
void Blam::Logger::Internal::PrepareHTMLLog | ( | std::string | report_filename | ) |
Prepares the HTML log file.
This function will write the default contents of the HTML file in order to ensure that messages can be logged without error.
report_filename | - The filename of the report, without any file extension. |
std::string Blam::Logger::Internal::PrepareHTMLTemplate | ( | std::string | log_title | ) |
Prepares the contents of the default HTML log template.
log_title | - The title of the log file. Should be the filename, without the extension. |
void Blam::Logger::Internal::PrepareTextLog | ( | std::string | report_filename | ) |
Prepares the plain text log file for writing.
This function will only create the file, and clear it if the setting is enabled in config. No fancy formatting required - it's plain text, after all.
report_filename | - The filename of the report, without any file extension. |