logging

Implemented Logging