mirror of
https://github.com/pound-emu/pound.git
synced 2025-06-22 22:48:09 -04:00
28 lines
623 B
C++
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
|