1#ifndef HYDROBRICKS_LOG_H
2#define HYDROBRICKS_LOG_H
30 void Open(
const std::string& path);
37 [[nodiscard]]
bool IsOpen();
39 void Write(
const std::string& line);
45 std::unique_ptr<Impl> _impl;
68void LogSetLevel(LogLevel level);
73void LogSetFile(
const std::string& path);
81void LogError(
const std::string& msg);
82void LogWarning(
const std::string& msg);
83void LogMessage(
const std::string& msg);
84void LogDebug(
const std::string& msg);
87template <
typename... Args>
88void LogError(std::format_string<Args...> fmt, Args&&... args) {
89 LogError(std::format(fmt, std::forward<Args>(args)...));
92template <
typename... Args>
93void LogWarning(std::format_string<Args...> fmt, Args&&... args) {
94 LogWarning(std::format(fmt, std::forward<Args>(args)...));
97template <
typename... Args>
98void LogMessage(std::format_string<Args...> fmt, Args&&... args) {
99 LogMessage(std::format(fmt, std::forward<Args>(args)...));
102template <
typename... Args>
103void LogDebug(std::format_string<Args...> fmt, Args&&... args) {
104 LogDebug(std::format(fmt, std::forward<Args>(args)...));
void Open(const std::string &path)
Definition Log.cpp:56
void Close()
Definition Log.cpp:64