diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-02 21:19:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-02 21:19:20 -0400 |
commit | c2e0820ac2c0b51c0b14af608f4225eec8712f5e (patch) | |
tree | 0a40b6f36c98402748b881fb43986f32d16ffbd8 /src/common/logging/backend.h | |
parent | c824648db52aaa4ba1282964889c600e5b030174 (diff) | |
parent | 8529d84f31f94502d97a43a723275049c2cb79d7 (diff) |
Merge pull request #262 from daniellimws/fmtlib-macros
Logging: Add fmtlib-based macros
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 70744e3e5b..7e81efb238 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -22,13 +22,16 @@ struct Entry { std::chrono::microseconds timestamp; Class log_class; Level log_level; - std::string location; + std::string filename; + unsigned int line_num; + std::string function; std::string message; Entry() = default; Entry(Entry&& o) = default; Entry& operator=(Entry&& o) = default; + Entry& operator=(const Entry& o) = default; }; /** @@ -44,7 +47,7 @@ const char* GetLevelName(Level log_level); /// Creates a log entry by formatting the given source location, and message. Entry CreateEntry(Class log_class, Level log_level, const char* filename, unsigned int line_nr, - const char* function, const char* format, va_list args); + const char* function, std::string message); void SetFilter(Filter* filter); } // namespace Log |