log exceptions into separate file