Add log4net and some logging statements.