![]() |
Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
|
Declares log file lifecycle helpers. More...
Go to the source code of this file.
Classes | |
| struct | logging::LoadLogFileResult |
| Result of loading the persisted log file for the shell viewer. More... | |
| class | logging::RuntimeLogFileSink |
| Small helper that targets one persisted runtime log file. More... | |
Functions | |
| bool | logging::append_log_file_entry (const LogEntry &entry, const std::string &filePath=default_log_file_path(), std::string *errorMessage=nullptr) |
| Append one formatted log entry to the persisted log file. | |
| std::string | logging::default_log_file_path () |
| Return the default path used for persisted log output. | |
| LoadLogFileResult | logging::load_log_file (const std::string &filePath=default_log_file_path(), std::size_t maxLines=64U) |
| Load recent lines from the persisted log file. | |
| bool | logging::reset_log_file (const std::string &filePath=default_log_file_path(), std::string *errorMessage=nullptr) |
| Truncate or recreate the persisted log file. | |
Declares log file lifecycle helpers.
| bool logging::append_log_file_entry | ( | const LogEntry & | entry, |
| const std::string & | filePath = default_log_file_path(), | ||
| std::string * | errorMessage = nullptr ) |
Append one formatted log entry to the persisted log file.
| entry | Structured log entry to append. |
| filePath | Target log file path. |
| errorMessage | Optional output for I/O failures. |
| std::string logging::default_log_file_path | ( | ) |
Return the default path used for persisted log output.
| LoadLogFileResult logging::load_log_file | ( | const std::string & | filePath = default_log_file_path(), |
| std::size_t | maxLines = 64U ) |
Load recent lines from the persisted log file.
| filePath | Target log file path. |
| maxLines | Maximum number of trailing lines to retain. |
| bool logging::reset_log_file | ( | const std::string & | filePath = default_log_file_path(), |
| std::string * | errorMessage = nullptr ) |
Truncate or recreate the persisted log file.
| filePath | Path to reset. |
| errorMessage | Optional output for I/O failures. |