diff options
| author | 2021-10-05 10:05:46 -0700 | |
|---|---|---|
| committer | 2021-10-05 10:05:46 -0700 | |
| commit | 5b2fa8dd418d82b51acdc6849fafbc6a2e858fa9 (patch) | |
| tree | 879f5fb79a0d320cb56a5e66eab783de9614d88a /src/common/logging/log_entry.h | |
| parent | Merge pull request #7103 from Morph1984/service-ctx-event (diff) | |
| parent | common/logging: Reduce scope of fmt include (diff) | |
| download | yuzu-5b2fa8dd418d82b51acdc6849fafbc6a2e858fa9.tar.gz yuzu-5b2fa8dd418d82b51acdc6849fafbc6a2e858fa9.tar.xz yuzu-5b2fa8dd418d82b51acdc6849fafbc6a2e858fa9.zip | |
Merge pull request #7115 from ameerj/log-compile
common/logging: Reduce dependent header include overhead
Diffstat (limited to '')
| -rw-r--r-- | src/common/logging/log_entry.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/common/logging/log_entry.h b/src/common/logging/log_entry.h new file mode 100644 index 000000000..dd6f44841 --- /dev/null +++ b/src/common/logging/log_entry.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <chrono> | ||
| 8 | |||
| 9 | #include "common/logging/types.h" | ||
| 10 | |||
| 11 | namespace Common::Log { | ||
| 12 | |||
| 13 | /** | ||
| 14 | * A log entry. Log entries are store in a structured format to permit more varied output | ||
| 15 | * formatting on different frontends, as well as facilitating filtering and aggregation. | ||
| 16 | */ | ||
| 17 | struct Entry { | ||
| 18 | std::chrono::microseconds timestamp; | ||
| 19 | Class log_class{}; | ||
| 20 | Level log_level{}; | ||
| 21 | const char* filename = nullptr; | ||
| 22 | unsigned int line_num = 0; | ||
| 23 | std::string function; | ||
| 24 | std::string message; | ||
| 25 | bool final_entry = false; | ||
| 26 | }; | ||
| 27 | |||
| 28 | } // namespace Common::Log | ||