From 43260cf9820c60d5b57a390a13f34615a6a2d528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Sun, 3 Sep 2017 14:17:57 +0200 Subject: [PATCH] Log the fiber/task ID in the HTML logger. --- source/vibe/core/log.d | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/source/vibe/core/log.d b/source/vibe/core/log.d index cbaccb3..ee78d85 100644 --- a/source/vibe/core/log.d +++ b/source/vibe/core/log.d @@ -401,6 +401,8 @@ final class HTMLLogger : Logger { m_logFile.writef(`
%s
`, msg.time.toISOExtString()); if (msg.thread) m_logFile.writef(`
%s
`, msg.thread.name); + if (msg.fiber) + m_logFile.writef(`
%s
`, msg.fiberID); m_logFile.write(`
`); } @@ -463,10 +465,16 @@ final class HTMLLogger : Logger { left: 150pt; width: 100pt; } + div.taskID { + position: absolute; + top: 0pt; + left: 250pt; + width: 70pt; + } div.message { position: relative; top: 0pt; - left: 250pt; + left: 320pt; } body { font-family: Tahoma, Arial, sans-serif;