Reputation: 33
I've install the MetroLog package from Nuget into UWP solution (VS2015).
In debug mode everything works fine - it create a log file in local folder and write contents inside.
When i create an .appx file, copy it into the WP device and install it, nothing happend, the MetroLog does not create any log file.
Please, need help?
Upvotes: 0
Views: 265
Reputation: 15758
MetroLog is supported in UWP. And by default, in will store logs in the app's LocalState folder. So the key point here is how to access LocalState (LocalFolder) folder in Windows 10 Mobile.
Usually, we may use some third party tools like IsoStoreSpy or Windows Phone Power Tools to access Isolated Storage. With these tools, we can access LocalFolder, TemporaryFolder and RoamingFolder. However, these two tools can only works when the application is deployed in Debug mode.
For now, it is suggested to use App File Explorer to view and manipulate files stored by your sideloaded apps. This tool should be able to work no matter your application is deployed in Debug mode or Release mode. But please note that this is a new tool added to Windows Device Portal in the Anniversary Update.
To use this feature, we need enable Device discovery and Device Portal. For more info, please see Using the App File Explorer to see your app data.
Upvotes: 0