Added tablemode#logger#log && g:table_mode_verbose

Use logger wherever needed for logging general things, in future we can
scale this to do more things like write to a log file for debugging. It
uses g:table_mode_verbose to determine whether or not to actually log
the message.
This commit is contained in:
Dhruva Sagar
2014-11-18 07:57:45 +05:30
parent af0254e816
commit 29cae13802
2 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
function! tablemode#logger#log(message)
if g:table_mode_verbose
echom message
endif
endfunction