sample6bis and sample6 refactoring logging