Changed logging mechanism.

Altered the logging mechanism - now uses Log4Net