SHA256
.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#ifndef FEATHERLOG_LOGGER_HPP
|
||||
#define FEATHERLOG_LOGGER_HPP
|
||||
|
||||
#include <format>
|
||||
#include <source_location>
|
||||
|
||||
#include "log_manager.hpp"
|
||||
|
||||
namespace flog
|
||||
{
|
||||
class LoggerCallback;
|
||||
|
||||
class Logger
|
||||
{
|
||||
friend class LogManager;
|
||||
|
||||
public:
|
||||
~Logger() = default;
|
||||
|
||||
template <typename... Args>
|
||||
void info(std::format_string<Args...> fmt, Args&&... args,
|
||||
std::source_location loc = std::source_location::current());
|
||||
|
||||
private:
|
||||
Logger(const std::string& name, std::weak_ptr<LogManager> manager) : m_name(name), m_logManager(manager)
|
||||
{ }
|
||||
|
||||
std::string m_name;
|
||||
std::weak_ptr<LogManager> m_logManager;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user