From b5a0686d97562ad38948582004a5b8b064c14198 Mon Sep 17 00:00:00 2001 From: Marcel Siegel Date: Fri, 3 Jan 2025 13:55:16 +0100 Subject: [PATCH 1/2] Update README.md Change "Source" to "FormatterConfiguration.ReadableApplicationName" --- src/X.Extensions.Logging.Telegram/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/X.Extensions.Logging.Telegram/README.md b/src/X.Extensions.Logging.Telegram/README.md index 6485832..845960b 100644 --- a/src/X.Extensions.Logging.Telegram/README.md +++ b/src/X.Extensions.Logging.Telegram/README.md @@ -13,7 +13,7 @@ var options = new TelegramLoggerOptions(LogLevel.Information) { AccessToken = "1234567890:AAAaaAAaa_AaAAaa-AAaAAAaAAaAaAaAAAA", ChatId = "-0000000000000", - Source = "Human Readable Project Name" + FormatterConfiguration.ReadableApplicationName = "Human Readable Project Name" }; ... @@ -42,7 +42,9 @@ builder }, "AccessToken": "1234567890:AAAaaAAaa_AaAAaa-AAaAAAaAAaAaAaAAAA", "ChatId": "1234567890", - "Source": "Human Readable Project Name" + "FormatterConfiguration": { + "ReadableApplicationName": "Human Readable Project Name" + } } }, "AllowedHosts": "*" @@ -84,4 +86,4 @@ private ITelegramMessageFormatter CreateFormatter(string name) logBuilder.AddTelegram(options, CreateFormatter); ``` -For using custom message formatter delegate Func should be passed to extensions method AddTelegram. Delegate should be used because formatter needs to know which category is used for rendering the message. \ No newline at end of file +For using custom message formatter delegate Func should be passed to extensions method AddTelegram. Delegate should be used because formatter needs to know which category is used for rendering the message. From d1f8f0045f956769bd64eb943efa687035a73a4c Mon Sep 17 00:00:00 2001 From: Marcel Siegel Date: Fri, 3 Jan 2025 14:03:55 +0100 Subject: [PATCH 2/2] corrected readme --- src/X.Extensions.Logging.Telegram/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/X.Extensions.Logging.Telegram/README.md b/src/X.Extensions.Logging.Telegram/README.md index 845960b..a4d31d9 100644 --- a/src/X.Extensions.Logging.Telegram/README.md +++ b/src/X.Extensions.Logging.Telegram/README.md @@ -13,7 +13,7 @@ var options = new TelegramLoggerOptions(LogLevel.Information) { AccessToken = "1234567890:AAAaaAAaa_AaAAaa-AAaAAAaAAaAaAaAAAA", ChatId = "-0000000000000", - FormatterConfiguration.ReadableApplicationName = "Human Readable Project Name" + FormatterConfiguration = new FormatterConfiguration { ReadableApplicationName = "Human Readable Project Name" } }; ...