finalising logging system