diff --git a/autoload/SpaceVim/logger.vim b/autoload/SpaceVim/logger.vim index cef1ba21a..76fc5ecb3 100644 --- a/autoload/SpaceVim/logger.vim +++ b/autoload/SpaceVim/logger.vim @@ -57,7 +57,14 @@ if has('nvim-0.5.0') endif endfunction "" - " change the logger level of spacevim runtime log. + " @public + " Set debug level of SpaceVim. Default is 1. + " + " 1 : log all messages + " + " 2 : log warning and error messages + " + " 3 : log error messages only function! SpaceVim#logger#setLevel(level) abort lua require("spacevim.logger").setLevel(require("spacevim").eval("a:level")) endfunction @@ -182,22 +189,10 @@ else call matchadd('WarningMsg','.*[\sWarn\s\].*') endfunction - "" - " @public - " Set debug level of SpaceVim. Default is 1. - " - " 1 : log all messages - " - " 2 : log warning and error messages - " - " 3 : log error messages only function! SpaceVim#logger#setLevel(level) abort call s:LOGGER.set_level(a:level) endfunction - "" - " @public - " Set the log output file of SpaceVim. Default is empty. function! SpaceVim#logger#setOutput(file) abort call s:LOGGER.set_file(a:file) endfunction diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 0c9da79c4..822ae5120 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -1665,7 +1665,13 @@ SpaceVim#logger#viewLog() *SpaceVim#logger#viewLog()* Print the debug information of spacevim, same as |:SPDebugInfo| SpaceVim#logger#setLevel({level}) *SpaceVim#logger#setLevel()* - change the logger level of spacevim runtime log. + Set debug level of SpaceVim. Default is 1. + + 1 : log all messages + + 2 : log warning and error messages + + 3 : log error messages only SpaceVim#logger#setOutput({file}) *SpaceVim#logger#setOutput()* change the output file of spacevim runtime logger. default is empty string. @@ -1693,18 +1699,6 @@ SpaceVim#logger#derive({name}) *SpaceVim#logger#derive()* [ myplug ] [00:02:54:051] [ Info ] hello world < -SpaceVim#logger#setLevel({level}) *SpaceVim#logger#setLevel()* - Set debug level of SpaceVim. Default is 1. - - 1 : log all messages - - 2 : log warning and error messages - - 3 : log error messages only - -SpaceVim#logger#setOutput({file}) *SpaceVim#logger#setOutput()* - Set the log output file of SpaceVim. Default is empty. - SpaceVim#plugins#iedit#start([options], [firstline], [lastline]) *SpaceVim#plugins#iedit#start()* This is public function to evoke iedit with [options]. The default