MetroLog icon indicating copy to clipboard operation
MetroLog copied to clipboard

Logging Setup on UWP

Open karolys opened this issue 10 years ago • 2 comments

Curious if I'm missing anything regarding setting up MetroLog for logging in a Windows 10 UWP app. I've installed the package via NuGet and have modified the App() constructor in App.xaml.cs to add an additional target, LogManagerFactory.DefaultConfiguration.AddTarget(LogLevel.Info, LogLevel.Fatal, new StreamingFileTarget());

I am still unable to find any logs being created, and don't seem to be able to find a clearly defined location I should be looking for them outside of the directory the app runs from. Is it possible to configure the file location and name that is being written to?

I'd be happy to upload my test project if that helps nail down my configuration issues.

karolys avatar Mar 03 '16 02:03 karolys

I wrote a post explaing how to achieve that for UWP.

ptedeschi avatar Apr 15 '16 20:04 ptedeschi