diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-07-10 14:51:29 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-07-10 14:51:29 +0200 |
commit | 1cd7898c01b6cfcdcd0314a3d79bf8a86aa1e619 (patch) | |
tree | fbd8cb01b0203de70dee9136c45abbcf94360ccd /src/common/Logging/Log.h | |
parent | e05d194da3d742130cd2f9eb91051610d58f8236 (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)
Diffstat (limited to 'src/common/Logging/Log.h')
-rw-r--r-- | src/common/Logging/Log.h | 3 |
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); |