mirror of
https://github.com/starr-dusT/citra.git
synced 2024-10-02 10:26:17 -07:00
28 lines
651 B
C++
28 lines
651 B
C++
// Copyright 2021 yuzu Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
|
|
#include "common/logging/types.h"
|
|
|
|
namespace Common::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 log_class{};
|
|
Level log_level{};
|
|
const char* filename = nullptr;
|
|
u32 line_num = 0;
|
|
std::string function;
|
|
std::string message;
|
|
};
|
|
|
|
} // namespace Common::Log
|