aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-05-27 11:47:51 +0200
committerShauren <shauren.trinity@gmail.com>2021-05-27 11:47:51 +0200
commit480039f913e5013ee4746c21818e6c2169739bf4 (patch)
tree5829314a2bb448aaa289f4f79accddfd32bc5f26 /src/common/Logging/Log.h
parent3c08eb190f8fff96a17c6cb61892f813940648ce (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.h3
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;