add log support