pretty print for logs