Fix logging in .NET and app store app (#63)