MostlyHarmless
0.0.1
Loading...
Searching...
No Matches
mostlyharmless_Logging.h
Go to the documentation of this file.
1
//
2
// Created by sylmo on 05/10/2025.
3
//
4
5
#ifndef MOSTLYHARMLESS_LOGGING_H
6
#define MOSTLYHARMLESS_LOGGING_H
7
#include <filesystem>
8
namespace
mostly_harmless::utils
{
9
/***
10
* \brief Helper class for logging to a file.
11
*/
12
class
Logging
final {
13
public
:
18
explicit
Logging
(std::filesystem::path logFile);
22
~Logging
() noexcept;
23
28
auto
dump
(std::string_view toDump) const noexcept ->
void
;
29
private:
30
std::filesystem::path m_logFile;
31
};
32
}
33
#endif
//MOSTLYHARMLESS_LOGGING_H
mostly_harmless::utils::Logging::Logging
Logging(std::filesystem::path logFile)
mostly_harmless::utils::Logging::~Logging
~Logging() noexcept
mostly_harmless::utils::Logging::dump
auto dump(std::string_view toDump) const noexcept -> void
mostly_harmless::utils
Contains general purpose utility classes & functions.
Definition
mostlyharmless_TaskThread.h:12
include
mostly_harmless
utils
mostlyharmless_Logging.h
Generated by
1.14.0