diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-09-30 16:11:47 -0400 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-10-01 20:48:49 -0400 |
| commit | 5daf3abe65bb168e4274049c26e7f309b8f10e82 (patch) | |
| tree | f62a59154b2ab0460e83f1bbfb02f93a3364ec3f /src/common/logging/types.h | |
| parent | 8bd5742349007d3faa9d786450a20f31d5db0b94 (diff) | |
common/logging: Move Log::Entry declaration to a separate header
This reduces the load of requiring to include std::chrono in all files which include log.h
Diffstat (limited to 'src/common/logging/types.h')
| -rw-r--r-- | src/common/logging/types.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/common/logging/types.h b/src/common/logging/types.h index ddf9d27ca..2d21fc483 100644 --- a/src/common/logging/types.h +++ b/src/common/logging/types.h @@ -4,8 +4,6 @@ #pragma once -#include <chrono> - #include "common/common_types.h" namespace Common::Log { @@ -131,19 +129,4 @@ enum class Class : u8 { Count ///< Total number of logging classes }; -/** - * 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; - unsigned int line_num = 0; - std::string function; - std::string message; - bool final_entry = false; -}; - } // namespace Common::Log |
