setup distributed logging