Implemented Logging Mechanism