Fixed logging on winrt.