Added file logging to applications