Added a chapter on logging to the programming guide