support multi-level log dir