Testing Logging function