aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-07-10 14:51:29 +0200
committerOvahlord <dreadkiller@gmx.de>2024-07-11 19:06:51 +0200
commit4c4f5f0ae4c7ad01d846b62051959b2cab16f306 (patch)
tree6d08f61c95fe3d480dcb785e8bbd6495ffb9fc51 /src/common/Logging/Log.h
parenta638c3690547e17c129abf2737c8ed6b0732a55f (diff)
Core/Logging: Removed one layer of allocations from log message writes (async doesn't wrap in shared_ptr anymore and sync creates LogMessage on the stack)
(cherry picked from commit 1cd7898c01b6cfcdcd0314a3d79bf8a86aa1e619)
Diffstat (limited to 'src/common/Logging/Log.h')
-rw-r--r--src/common/Logging/Log.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/Logging/Log.h b/src/common/Logging/Log.h
index dd6149f42b0..9f9634a40ae 100644
--- a/src/common/Logging/Log.h
+++ b/src/common/Logging/Log.h
@@ -90,7 +90,7 @@ class TC_COMMON_API Log
this->OutCommandImpl(account, fmt, Trinity::MakeFormatArgs(args...));
}
- void OutCharDump(char const* str, uint32 account_id, uint64 guid, char const* name);
+ void OutCharDump(std::string const& str, uint32 account_id, uint64 guid, std::string const& name) const;
void SetRealmId(uint32 id);
@@ -126,7 +126,6 @@ class TC_COMMON_API Log
private:
static std::string GetTimestampStr();
- void write(Logger const* logger, std::unique_ptr<LogMessage> msg) const;
Logger const* GetLoggerByType(std::string_view type) const;
Appender* GetAppenderByName(std::string_view name);