Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado-x authored Dec 20, 2021
1 parent dc27029 commit 2385166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
````

### Use custom log writer
Now developers can use their own implementation for writing data to Telegram. Custom writer should implement ILogWriter interface:
Now developers can use their own implementation for writing data to Telegram. Custom writer should implement _ILogWriter_ interface:

``` cs
var customLogWriter = new CustomLogWriter();
logBuilder.AddTelegram(options, customLogWriter);
```

### Use custom message formatter
For implement custom message formatting ITelegramMessageFormatter can be used now.
For implement custom message formatting _ITelegramMessageFormatter_ can be used now.

``` cs
private ITelegramMessageFormatter CreateFormatter(string name)
{
return new CustomAceTelegramMessageFormatter(name);
return new CustomTelegramMessageFormatter(name);
}

logBuilder.AddTelegram(options, CreateFormatter);
Expand Down

0 comments on commit 2385166

Please sign in to comment.