[C] Expose Application.LogWarningsListener (#4539) fixes #1517 fixes #3873
authorStephane Delcroix <stephane@delcroix.org>
Mon, 3 Dec 2018 12:59:52 +0000 (13:59 +0100)
committerRui Marinho <me@ruimarinho.net>
Mon, 3 Dec 2018 12:59:52 +0000 (12:59 +0000)
commit05b52c9cbfa6d1a4132de5658fa2af505577d417
treed9e2ad52a061e2cd66db44a844f1c7cc3fa93b90
parenta4b2a4e45f0931b67b5a4a18099877006edb89a3
[C] Expose Application.LogWarningsListener (#4539) fixes #1517 fixes #3873

* [C] Expose Application.LogWarningsListener

The fix proposed in #2911 didn't worked with Release build of XF, aka
the majority of the builds used.
This fix allows the developer to set any logger he might like, but the
plan is to add a default one in the template, that uses Debug.WriteLine,
so it will Log if the user application is build with Debug, and not if
XF binaries are.

- fixes #1517
- fixes #3873

* Update Xamarin.Forms.Core/BindableObject.cs

* Update Xamarin.Forms.Core/ListView.cs
Xamarin.Forms.Core/Application.cs
Xamarin.Forms.Core/BindableObject.cs
Xamarin.Forms.Core/ListView.cs