1. read configuration file; 2. log and debug;