set logging context before every message