Sample logging code from SharePoint User Group meeting Moscow 16.10.2014