Added Logging (fixes #1)

Only debug, info and error are used