support two log format