This commit is contained in:
2022-05-07 17:42:26 +02:00
parent d7f2348f0d
commit 23930b44a2
8 changed files with 51 additions and 22 deletions

View File

@@ -6,6 +6,11 @@ internal static class LogBoy
{
private static readonly StringBuilder Log = new();
internal static async Task LogResponse(HttpResponseMessage message)
{
AddToLog(message.RequestMessage?.RequestUri + " " + message.StatusCode + " " + await message.Content.ReadAsStringAsync());
}
internal static void AddToLog(string text)
{
Log.Append('[' + DateTime.Now.ToShortTimeString() + "] ");