I personally have setup a Logging class that like an above poster said, contains a static WriteToLog(String) method.