LibVLC.Log not call in release mode UWP
Summary
LibVLC.Log call in debug mode, but not call in release mode.
Minimal project and steps to reproduce
private void Initialized(object sender, InitializedEventArgs e)
{
_libVLC = new LibVLC(SwapChainOptions);
_libVLC.Log += _libVLC_Log;
MediaPlayer = new MediaPlayer(_libVLC);
using (var media = new Media(_libVLC, "sample url video"))
MediaPlayer.Play(media);
}
private void _libVLC_Log(object sender, LogEventArgs e)
{
var log = $"[{e.Level}] {e.Module}:{e.Message}";
Debug.WriteLine(log);
}
What is the current bug behavior?
Method _libVLC_Log call in debug mode, but not call in release mode
What is the expected correct behavior?
What can be configured for the method to be called in release mode?
Environment
- OS: Win10 UWP
- VideoLAN.LibVLC.UWP 3.3.0
- LibVLCSharp version 3.4.9