blob: af0b7e1311613993fbb958a2b01f9c6dce5aea85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System.Text;
namespace Timeline.Helpers
{
public static class Log
{
public static string Format(string summary, params (string, object?)[] properties)
{
var builder = new StringBuilder();
builder.Append(summary);
foreach (var property in properties)
{
var (key, value) = property;
builder.AppendLine();
builder.Append(key);
builder.Append(" : ");
builder.Append(value);
}
return builder.ToString();
}
}
}
|