-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce logging #22
Comments
For some of of my scripts I've used Decho. It is definitely not perfect but it is pretty easy to start using. |
@romainl what do you think? Do you want external dependencies? Sent with AquaMail for Android On 14 November 2016 5:55:47 pm Ryan Carney [email protected] wrote:
|
Silly me… that was #23. |
@ntnn I don't want external dependencies if I can avoid them. I'd like to play with |
A real vimscript logging library would be very nice, I could never seem find one. Once potentially nice thing about Decho is that it is only a dependency for anyone who wants to use logging. In my case I just enabled it for debugging and disabled it before committing changes or fixes. |
No, having a difference in the code between dev and production is not a choice. @romainl Mhm... I don't like exceptions, I'd rather sanitize input more. |
Introduce logging
Soft-touched logging would be nice, e.g.
qf#log
,qf#debug
andqf#error
, which prefix the message with avim-qf:level:
and thedebug level only showing when e.g.
g:qf_debug
is true or the like.This'd help greatly with debugging in the future as well as help
understand the code (e.g. on early returns etc.pp. a debug message would
act like a comment explaining the early exit.
The text was updated successfully, but these errors were encountered: