Custom loggers are very easy to write and for the most part are easy to implement. Even still, if you are creating new loggers you may need to debug the behavior. Debugging custom loggers is very similar to debugging custom tasks. Just like debugging custom tasks, in the next list you will find three methods that can be used to debug loggers:
Examine the contents of the log
Start MSBuild as External Program
The simplest and least informative approach is the first one, which entails simply examining the contents of the log to determine the behavior of the logger. If you decide to use this technique, you may want to set the verbosity of the logger to either Detailed or Diagnostic, if possible. This method can be used ...