Revert "Remove logger from  abstract commit hook creation"

This reverts commit 62cf20c434c98bea3bcde516227ad4a6d28efecf.
Revert "Refactor writting of offsets to sequence files"

This reverts commit e664380b3a865f9b1e5c2e10c2376074031be1ad.