1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

perf(bookmark): add bookmark logger

This commit is contained in:
Eric Wong 2024-03-27 09:47:41 +08:00
parent 348d868d9d
commit ea2dea6fdc

View File

@ -0,0 +1,33 @@
"=============================================================================
" log.vim --- log for bookmark
" Copyright (c) 2016-2019 Wang Shidong & Contributors
" Author: Wang Shidong < wsdjeg@outlook.com >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
let s:LOG = SpaceVim#logger#derive('bookmark')
function! bm#info(log) abort
call s:LOG.info(a:log)
endfunction
function! bm#warn(log) abort
call s:LOG.warn(a:log)
endfunction
function! bm#error(log) abort
call s:LOG.error(a:log)
endfunction
function! bm#debug(log) abort
call s:LOG.debug(a:log)
endfunction