private void AppendTagBytes(ByteArray buffer, LogEventInfo logEvent, Encoding encoding)
        {
            var tag      = tagPolicySet.Apply(tagLayout.Render(logEvent));
            var tagBytes = encoding.GetBytes(tag);

            buffer.Append(tagBytes);
        }
Esempio n. 2
0
        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);
        }