Log to file methods added