diff options
author | Lioncash <mathew1800@gmail.com> | 2020-08-03 16:31:57 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-08-03 16:37:48 +0200 |
commit | 8725b37a358cf27c144d7b606fa8f126d61ee52d (patch) | |
tree | 3fd0a43978fd9044dea400ea7ebc3e9685b9a693 /src/common/logging/backend.cpp | |
parent | ipc: Allow all trivially copyable objects to be passed directly into WriteBuffer (#4465) (diff) | |
download | yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar.gz yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar.bz2 yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar.lz yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar.xz yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.tar.zst yuzu-8725b37a358cf27c144d7b606fa8f126d61ee52d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/common/logging/backend.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 04bc3128f..62cfde397 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -113,19 +113,19 @@ private: Entry CreateEntry(Class log_class, Level log_level, const char* filename, unsigned int line_nr, const char* function, std::string message) const { using std::chrono::duration_cast; + using std::chrono::microseconds; using std::chrono::steady_clock; - Entry entry; - entry.timestamp = - duration_cast<std::chrono::microseconds>(steady_clock::now() - time_origin); - entry.log_class = log_class; - entry.log_level = log_level; - entry.filename = filename; - entry.line_num = line_nr; - entry.function = function; - entry.message = std::move(message); - - return entry; + return { + .timestamp = duration_cast<microseconds>(steady_clock::now() - time_origin), + .log_class = log_class, + .log_level = log_level, + .filename = filename, + .line_num = line_nr, + .function = function, + .message = std::move(message), + .final_entry = false, + }; } std::mutex writing_mutex; |