Fix log formatter