Added logging (log4cpp)