writing to files in CommonLog format