Logging code developed