aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/log.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conform/log.lua')
-rw-r--r--lua/conform/log.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/conform/log.lua b/lua/conform/log.lua
index b42d1f8..753a3c6 100644
--- a/lua/conform/log.lua
+++ b/lua/conform/log.lua
@@ -35,7 +35,7 @@ local function format(level, msg, ...)
local ok, text = pcall(string.format, msg, vim.F.unpack_len(args))
if ok then
local str_level = levels[level]
- return string.format("[%s] %s", str_level, text)
+ return string.format("%s[%s] %s", vim.fn.strftime("%H:%M:%S"), str_level, text)
else
return string.format("[ERROR] error formatting log line: '%s' args %s", msg, vim.inspect(args))
end