diff options
| -rw-r--r-- | zenserver/diag/logging.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/zenserver/diag/logging.cpp b/zenserver/diag/logging.cpp index 7d4e458cc..dd9e3e806 100644 --- a/zenserver/diag/logging.cpp +++ b/zenserver/diag/logging.cpp @@ -242,6 +242,10 @@ public: dest.append("zenserver"sv); dest.append("\", "sv); + dest.append("\"service\": \""sv); + dest.append("zencache"sv); + dest.append("\", "sv); + if (!m_LogId.empty()) { dest.append("\"id\": \""sv); @@ -251,14 +255,14 @@ public: if (msg.logger_name.size() > 0) { - dest.append("\"service\": \""sv); + dest.append("\"logger.name\": \""sv); dest.append(msg.logger_name); dest.append("\", "sv); } if (msg.thread_id != 0) { - dest.append("\"thread\": \""sv); + dest.append("\"logger.thread_name\": \""sv); fmt_helper::pad_uint(msg.thread_id, 0, dest); dest.append("\", "sv); } @@ -273,7 +277,7 @@ public: dest.append(fmt::format("{}", msg.source.line)); dest.append("\","sv); - dest.append("\"function\": \""sv); + dest.append("\"logger.method_name\": \""sv); WriteEscapedString(dest, msg.source.funcname); dest.append("\", "sv); } |