diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-05-27 11:47:51 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-05-27 11:47:51 +0200 |
commit | 480039f913e5013ee4746c21818e6c2169739bf4 (patch) | |
tree | 5829314a2bb448aaa289f4f79accddfd32bc5f26 /src/common/Logging/Log.h | |
parent | 3c08eb190f8fff96a17c6cb61892f813940648ce (diff) |
Core/Logging: Add functions that allow creating loggers and appenders from other sources than config files
Diffstat (limited to 'src/common/Logging/Log.h')
-rw-r--r-- | src/common/Logging/Log.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h index 27ce6da1cba..498bd830676 100644 --- a/src/common/Logging/Log.h +++ b/src/common/Logging/Log.h @@ -97,6 +97,9 @@ class TC_COMMON_API Log std::string const& GetLogsDir() const { return m_logsDir; } std::string const& GetLogsTimestamp() const { return m_logsTimestamp; } + void CreateAppenderFromConfigLine(std::string const& name, std::string const& options); + void CreateLoggerFromConfigLine(std::string const& name, std::string const& options); + private: static std::string GetTimestampStr(); void write(std::unique_ptr<LogMessage>&& msg) const; |