implemented Logging

to be finished