diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-08-22 13:59:32 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-12-15 11:03:22 +1000 |
commit | c5c76dc615677d226c9f6b3f2b66d833315d40da (patch) | |
tree | 6c84a458b2c23e78b59ff9f2d2d7243c20249780 /src/logging.h | |
parent | 8f7b9eb8711fdb32e8bdb59d2a7462a46c7a8086 (diff) |
logging: refactor: pull prefix code out
Diffstat (limited to 'src/logging.h')
-rw-r--r-- | src/logging.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logging.h b/src/logging.h index f7380d8928..bb4a3e2ca3 100644 --- a/src/logging.h +++ b/src/logging.h @@ -124,6 +124,8 @@ namespace BCLog { fs::path m_file_path; std::atomic<bool> m_reopen_file{false}; + std::string GetLogPrefix(LogFlags category, Level level) const; + /** Send a string to the log output */ void LogPrintStr(const std::string& str, const std::string& logging_function, const std::string& source_file, int source_line, BCLog::LogFlags category, BCLog::Level level); @@ -194,7 +196,7 @@ namespace BCLog { std::string LogLevelsString() const; //! Returns the string representation of a log level. - std::string LogLevelToStr(BCLog::Level level) const; + static std::string LogLevelToStr(BCLog::Level level); bool DefaultShrinkDebugFile() const; }; |