Skip to content

Commit

Permalink
Add a simple log function.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Mar 4, 2015
1 parent d59ac03 commit 4e22ad5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/gitgutter/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ endfunction
function! gitgutter#debug#output(text)
call append(line('$'), a:text)
endfunction

function! gitgutter#debug#log(message)
let msg = type(a:message) == 1 ? split(a:message, '\n') : a:message
call writefile(msg, 'gitgutter.log', 'a')
endfunction

0 comments on commit 4e22ad5

Please sign in to comment.