Set up logging levels and facilities