SharePoint: Writing messages to ULS (Unified Logging System)
If you want to make your SharePoint solution more SharePoint way you can write your tracing, debug and error messages to SharePoint log. Easiest way to do it is to write logger by yourself. Btw, SharePoint has class called ULS to write messages to logs but this class is internal and we cannot use it. But it is there.
NB! This blog is moved to gunnarpeipman.com
Click here to go to article