diff options
Diffstat (limited to 'src/common/logging/backend.h')
| -rw-r--r-- | src/common/logging/backend.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index 70744e3e5..7e81efb23 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h | |||
| @@ -22,13 +22,16 @@ struct Entry { | |||
| 22 | std::chrono::microseconds timestamp; | 22 | std::chrono::microseconds timestamp; |
| 23 | Class log_class; | 23 | Class log_class; |
| 24 | Level log_level; | 24 | Level log_level; |
| 25 | std::string location; | 25 | std::string filename; |
| 26 | unsigned int line_num; | ||
| 27 | std::string function; | ||
| 26 | std::string message; | 28 | std::string message; |
| 27 | 29 | ||
| 28 | Entry() = default; | 30 | Entry() = default; |
| 29 | Entry(Entry&& o) = default; | 31 | Entry(Entry&& o) = default; |
| 30 | 32 | ||
| 31 | Entry& operator=(Entry&& o) = default; | 33 | Entry& operator=(Entry&& o) = default; |
| 34 | Entry& operator=(const Entry& o) = default; | ||
| 32 | }; | 35 | }; |
| 33 | 36 | ||
| 34 | /** | 37 | /** |
| @@ -44,7 +47,7 @@ const char* GetLevelName(Level log_level); | |||
| 44 | 47 | ||
| 45 | /// Creates a log entry by formatting the given source location, and message. | 48 | /// Creates a log entry by formatting the given source location, and message. |
| 46 | Entry CreateEntry(Class log_class, Level log_level, const char* filename, unsigned int line_nr, | 49 | Entry CreateEntry(Class log_class, Level log_level, const char* filename, unsigned int line_nr, |
| 47 | const char* function, const char* format, va_list args); | 50 | const char* function, std::string message); |
| 48 | 51 | ||
| 49 | void SetFilter(Filter* filter); | 52 | void SetFilter(Filter* filter); |
| 50 | } // namespace Log | 53 | } // namespace Log |