file logging works