add log support for sphinx