![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Class representing a report file. More...
#include <logger.h>
Public Member Functions | |
| BlamReport (BlamReportType type, std::string filename) | |
| Initializes a new BlamReport. More... | |
| void | Initialize () |
| Initializes the report to ensure it is ready for use. More... | |
| bool | LogEvent (BlamLogMessage message) |
| Writes a message to the log file, console, and/or STDOUT depending on the message. More... | |
| void | PrintStartupHeader () |
| Prints the startup header to the log. More... | |
| bool | IsReady () |
| Whether or not the report is ready for use. More... | |
| void | MarkAsReady () |
| Marks the report as ready for use. More... | |
| void | Flush () |
| Flushes the contents of each report file to disk. More... | |
Public Attributes | |
| std::string | report_filename = "debug" |
| The filename of this report, without the extension. More... | |
| BlamReportType | report_type = BlamReportType::Debug |
| The type of this report. More... | |
Class representing a report file.
Reports are used to help ensure that logs can be more easily explored. While the default report file (debug.html/debug.txt) will contain all logged messages, those messages will often also be written to a secondary, more specific file. For instance, any script messages would be written to hs_log, any tag-related messages would be written to tag_debug, and so on.
The default 'Debug' report will always be created and acts as the default log file, regardless of if reports are disabled in the config or not.
| BlamReport::BlamReport | ( | BlamReportType | type, |
| std::string | filename | ||
| ) |
Initializes a new BlamReport.
| type | - The type of report. Must be unique. |
| filename | - The filename for the report, without any file extensions. |
| void BlamReport::Flush | ( | ) |
Flushes the contents of each report file to disk.
| void BlamReport::Initialize | ( | ) |
Initializes the report to ensure it is ready for use.
Here is the call graph for this function:| bool BlamReport::IsReady | ( | ) |
Whether or not the report is ready for use.
true if the logger is ready, otherwise returns false.
Here is the caller graph for this function:| bool BlamReport::LogEvent | ( | BlamLogMessage | message | ) |
Writes a message to the log file, console, and/or STDOUT depending on the message.
| message | - The message to log. |
true if the message was successfully logged, otherwise returns false.
Here is the call graph for this function:
Here is the caller graph for this function:| void BlamReport::MarkAsReady | ( | ) |
Marks the report as ready for use.
| void BlamReport::PrintStartupHeader | ( | ) |
Prints the startup header to the log.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string BlamReport::report_filename = "debug" |
The filename of this report, without the extension.
| BlamReportType BlamReport::report_type = BlamReportType::Debug |
The type of this report.