title: Serilog Custom Sink Formatting Issue with Serilog LogEventPropertyValue
body: <p>I'm having to create my own custom sink because none of the ones currently available give me what I need.</p>
  <p>Issue I have is when fetching the key/value pair Value from the logEvent message in the Emit Method, the value is wrapped with quotation marks &amp; backslashes.</p>
  <p>I've tried converting the out value from the dictionary into a string and then removing the unwanted attributes but nothing is working for me.</p>
  <p>Method in my Custom Sink Class:</p>
  <pre><code>    public void Emit(LogEvent logEvent)
      {
          var properties = logEvent.Properties;
  
          Serilog.Events.LogEventPropertyValue value;
          if (properties.TryGetValue(&quot;logEventCategory&quot;, out value))
          {
              // Regex.Replace((value.ToString() ?? &quot;&quot;).Replace(&quot;'&quot;, @&quot;\'&quot;).Trim(), @&quot;[\r\n]+&quot;, &quot; &quot;); // Not working
              var notWorking = value.ToString();
              var formattedValueNotWorking = value.ToString().Replace(&quot;\r\n&quot;, &quot;\\r\\n&quot;);
          }
      }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/1fsHe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1fsHe.jpg" alt="enter image description here" /></a></p>
  <p>It just seems that any attempted formatting of the key/value pair Value is ignored: You see that the example string value System is wrapped with a \&quot;System\&quot;
  All I want is the actual string, not the backslashes or quotation marks that is wrapped around the string.</p>
  <p><a href="https://i.stack.imgur.com/bP9O9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bP9O9.jpg" alt="enter image description here" /></a></p>
  <p>Creating my own sink is a hard enough task and I just want to keep things simple, have spent two days trying to understand the wider picture in message formatting but with custom sinks it gets too complicated and bloated coding for what I need. All the other standard message structure attributes are rendering OK, such as message / level / timestamp etc, it's just fine tuning the rendering of the propertie values I require in order to save these values into their own columns in my DB.</p>