diff --git a/src/X.Extensions.Logging.Telegram/README.md b/src/X.Extensions.Logging.Telegram/README.md index 6485832..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", - Source = "Human Readable Project Name" + FormatterConfiguration = new 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.