Configured logging with a file and email handler