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>
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
Logging(std::filesystem::path logFile)
auto dump(std::string_view toDump) const noexcept -> void
Contains general purpose utility classes & functions.
Definition mostlyharmless_TaskThread.h:12