refining logging system