private void AppendTagBytes(ByteArray buffer, LogEventInfo logEvent, Encoding encoding) { var tag = tagPolicySet.Apply(tagLayout.Render(logEvent)); var tagBytes = encoding.GetBytes(tag); buffer.Append(tagBytes); }
private void AppendMsg(ByteArray buffer, LogEventInfo logEvent, string logEntry) { var tag = tagPolicySet.Apply(tagLayout.Render(logEvent)); var content = contentPolicySet.Apply(logEntry); buffer.AppendAscii(tag); buffer.AppendAscii(content); }