1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:30:05 +08:00

fix(logger): format time

This commit is contained in:
wsdjeg 2022-05-27 17:35:33 +08:00
parent a989f9349e
commit 9f4a0ddbb3

View File

@ -54,10 +54,10 @@ endfunction
function! s:self._build_msg(msg, l) abort
let msg = a:msg
let time = strftime('%H:%M:%S')
let log = printf('[ %s ] [%s] [%00.3f] [ %5s ] %s',
let log = printf('[ %s ] [%s] [%8S] [ %5s ] %s',
\ self.name,
\ time,
\ s:TIME.reltimefloat(reltime(self.clock)),
\ printf('%00.3f' ,s:TIME.reltimefloat(reltime(self.clock))),
\ self.levels[a:l],
\ msg)
return log