trim log