Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

Make logging always work

Open anaisbetts opened this issue 12 years ago • 1 comments

Most people using Squirrel won't know what a Splat is. Let's make sure that users always get a log, even if they don't know about Splat logging.

anaisbetts avatar Sep 28 '14 02:09 anaisbetts

First off thanks for working on this. I really like the idea. I have been working on a small test project for the last couple of days and the lack of logging during update has been a pain point. On the upside I've learned more about external debugging that I ever wanted to know. :)

The underlying issue was different versions of nuget.core. When I built squirrel.windows it used 2.8.60318.667 but when I created the package and added it to my project it was 2.8.5 something. So when UpdateManager.ApplyReleases installPackageToAppDir tried to create the ZipPackage it crashed with unable to load nuget.core 2.8.6. The binding redirect only went as high as 2.8.5. It was pretty painful trying to figure this out, mainly due to my inexperience with the code.

I'd like to log this error in the future in case it occurs again but I'm not sure how to get logging working during update? Does my app need to initialize the Splat logger? I'd like to see if I could help out with a PR on this if you can point me in a direction but I'm not sure where to start on this one.

PushOrigin avatar May 15 '15 15:05 PushOrigin