Add profiler to logger and redirector