add loglevel settings
end of chapter 15