created file logger
chenged function name