LoggingProfiler for writing queries profiling info to logger