string formatter for logs