Tag | logging Posts

Over the last few months we have been developing custom SharePoint timer jobs. Since the jobs run under a Windows Service it makes it difficult to debug them. The saving grace we found is called ULS. It gives you a logging location that is consistent with the native timer jobs and an API which resembles most other logging frameworks. In order write events you first need to include the Microsoft.SharePoint.Admini... assembly. Then it is simply a matter of getting an instance of a SPDiagnosticsService ...
It’s been half a year since my last post. My how time flies. My new years resolution is to post more frequently. After a short stint at a local company, which shall remain nameless, I’m back at Veracity. Overall, Veracity Solutions is one of the best companies I’ve worked for, and I’m relieved to be back. So, this year, I’m going to do the following on my blog: Finish the Agile posts I started (IN MAY!!!). Blog about some code for a logging helper to make debug logging easier. Blog some resharper ...
One of my colleagues came-up with a unique situation where it was required to create log files based on the input file which is uploaded. For example if A.xml is uploaded, the corresponding log file should be A_log.txt. I am a strong believer that Logging / EH / caching are cross-cutting architecture aspects and should be least invasive to the business-logic written in enterprise application. I have been using Enterprise Library for logging / EH (i use to work with Avanade, so i have affection towards ...