Add LoggingComponent base class

Add a LoggingComponent base class with a brief example of how to use it in the documentation.