This commit is contained in:
CupWater
2026-08-17 13:47:07 +08:00
parent 99404f62d0
commit 17d63c62c4
3 changed files with 14 additions and 19 deletions
+1 -2
View File
@@ -7,8 +7,7 @@
#include <featherlog/log_level.hpp>
namespace flog
{
namespace flog {
struct LogMessage {
std::chrono::system_clock::time_point timestamp;
LogLevel level;
+2 -4
View File
@@ -7,10 +7,8 @@
#include <featherlog/log_message.hpp>
#include <featherlog/flog_definitions.h>
namespace flog
{
class FLOG_API LogOutputter
{
namespace flog {
class FLOG_API LogOutputter {
public:
virtual ~LogOutputter() = default;
+4 -6
View File
@@ -7,12 +7,10 @@
#include <featherlog/flog_definitions.h>
namespace flog
{
namespace flog {
class LoggerManager;
class FLOG_API Logger
{
class FLOG_API Logger {
friend class LogManager;
public:
@@ -23,8 +21,8 @@ namespace flog
std::source_location loc = std::source_location::current());
private:
Logger(std::string name, const std::weak_ptr<LogManager> &manager) noexcept :
m_name(std::move(name)), m_logManager(manager)
Logger(std::string name, const std::weak_ptr<LogManager> &manager) noexcept : m_name(std::move(name)),
m_logManager(manager)
{ }
std::string m_name;