MostlyHarmless 0.0.1
Loading...
Searching...
No Matches
mostly_harmless::utils::Logging Class Referencefinal

#include <mostlyharmless_Logging.h>

Public Member Functions

 Logging (std::filesystem::path logFile)
 ~Logging () noexcept
auto dump (std::string_view toDump) const noexcept -> void

Constructor & Destructor Documentation

◆ 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
logFileThe 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.

Member Function Documentation

◆ 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
toDumpThe text to dump to the log file

The documentation for this class was generated from the following file: