Seregon/ShadPKG

A tool for deriving PKG packet encryption keys for ps4 written in c++

C++/47.3 KB/No license
common/logging/log_entry.h
ShadPKG / common / logging / log_entry.h
1// SPDX-FileCopyrightText: Copyright 2014 Citra Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3 
4#pragma once
5 
6#include <chrono>
7 
8#include "common/logging/types.h"
9 
10namespace Common::Log {
11 
12/**
13 * A log entry. Log entries are store in a structured format to permit more varied output
14 * formatting on different frontends, as well as facilitating filtering and aggregation.
15 */
16struct Entry {
17 std::chrono::microseconds timestamp;
18 Class log_class{};
19 Level log_level{};
20 const char* filename = nullptr;
21 u32 line_num = 0;
22 std::string function;
23 std::string message;
24};
25 
26} // namespace Common::Log
27