Adding log suffix and head/tail logging