RotatedFileLogger needs data_dir on iOS to be initialized, so setting data_dir has been moved to initialize_core.