Exception logging

Add possibility to log message + exception.