logging: fix timestamp formatting and tweak setup