#include <mostlyharmless_Logging.h>
|
| Logging (std::filesystem::path logFile) |
| ~Logging () noexcept |
auto | dump (std::string_view toDump) const noexcept -> void |
◆ Logging()
mostly_harmless::utils::Logging::Logging |
( |
std::filesystem::path | logFile | ) |
|
|
explicit |
Constructor - if logFile doesn't already exist, creates it. Writes a newline specifying that logging has been started, to distinguish between multiple sessions with this file
- Parameters
-
logFile | The destination file for your logging output to be written to |
◆ ~Logging()
mostly_harmless::utils::Logging::~Logging |
( |
| ) |
|
|
noexcept |
Destructor - Writes a newline specifying that logging has been ended, to distinguish between multiple sessions with this file.
◆ dump()
auto mostly_harmless::utils::Logging::dump |
( |
std::string_view | toDump | ) |
const -> void |
|
noexcept |
Writes some text to your file, followed by a newline.
- Parameters
-
toDump | The text to dump to the log file |
The documentation for this class was generated from the following file: