blob: bc122e765494dbda1e18cfdb81ec03f6fbd15d58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using System.Collections.Generic;
using System.Text;
namespace TimelineApp.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();
}
}
}
|