Added logger variable to all classes
Added loggin messages to a great part of mercurial