Trim log output