optimized performance for file based loggers