add simple levelled debug logs