Fix Logger crash

va_list structure needs to be initialized before every time it is given to vsnprintf.
Merge pull request #1622 from rgngl/patch-1

Fix Logger crash