title: How to add ILogger to send email service?
body: <p>I have a Blazor project and use MailKit for sending emails.</p>
  
  <p>I'd like to add Logger to the email service.</p>
  
  <p>That is <code>Startup.ConfigureServices</code></p>
  
  <pre><code>//...
  services.AddSingleton&lt;IEmailConfiguration&gt;(Configuration.GetSection("EmailConfiguration").Get&lt;EmailConfiguration&gt;());
  //...
  services.AddTransient&lt;IEmailSender, EmailSender&gt;();
  //...
  </code></pre>
  
  <p>That is the <code>EmailSender</code> service:</p>
  
  <pre><code>public class EmailSender : IEmailSender
  {
      private readonly IEmailConfiguration _emailConfiguration;
      //private readonly ILogger&lt;WHATModel&gt; _logger; //&lt;------------?
  
      public EmailSender(IEmailConfiguration emailConfiguration)
      {
          _emailConfiguration = emailConfiguration;
      }
  
      public Task SendEmailAsync(string recipientEmail, string subject, string message)
      {
  
  //....
  </code></pre>
  
  <p>So, I can pass <code>EmailConfiguration</code> to the service but how I can pass a <code>ILogger</code>?</p>
  
  <p>It requires some model</p>
  
  <pre><code>private readonly ILogger&lt;WHATModel&gt; _logger; //&lt;------------?
  </code></pre>
  
  <p>What model should I pass?</p>