create logs recursively