Writing into the Windows Event Log in Bussiness Central

Recently I had to dump some information somewhere to debug an error. Instead of writing into a file, I gave this time the WindowsEvent Log a try.