Using char instead of wchar, logging to file