log formatting improvements