Fix Logger crash

va_list structure needs to be initialized before every time it is given to vsnprintf.