title: How to use serilog message templates with loggly
body: <p>I want to use Serilog message templates with Loggly.</p>
  
  <p>I have configured Loggly with Serilog into my application.</p>
  
  <pre><code>var logglySettings = new LogglySettings();
  configuration.GetSection("Serilog:Loggly").Bind(logglySettings);
  this.SetupLogglyConfiguration(logglySettings);
  Log.Logger = new LoggerConfiguration()
      .ReadFrom.Configuration(configuration)
      .CreateLogger();
  </code></pre>
  
  <p>But I am not able to send multiple properties to loggly.com</p>
  
  <p>For example I want to use:</p>
  
  <pre><code>public void Error&lt;T, T1&gt;(string message, T property0, T1 property1)
  {
      Log.Error(message, property0, property1);
  }
  </code></pre>
  
  <p>I am able to send multiple properties as </p>
  
  <pre><code> return this.logger.Error("Could not save data.", new { Exception = ex, RequestData = requestData });
  </code></pre>
  
  <p>But this does not fit into Serilog pattern.</p>
  
  <p>I wanted to use Serilog logging pattern as:</p>
  
  <pre><code>public void Error&lt;T, T1&gt;(string message, T property0, T1 property1)
  </code></pre>