pound/core/Base/Logging/LogEntry.h
2025-06-18 18:30:21 +02:00

28 lines
623 B
C++

// Copyright 2025 Xenon Emulator Project. All rights reserved.
#pragma once
#include <chrono>
#include "LogTypes.h"
namespace Base {
namespace Log {
/*
* A log entry. Log entries are store in a structured format to permit more varied output
* formatting on different frontends, as well as facilitating filtering and aggregation.
*/
struct Entry {
std::chrono::microseconds timestamp = {};
Class logClass = {};
Level logLevel = {};
const char *filename = nullptr;
u32 lineNum = 0;
std::string function = {};
std::string message = {};
bool formatted = true;
};
} // namespace Log
} // namespace Base