setup log formatting