Implement Diagnostics Logging