protected override void PrepareMessage(ByteArray buffer, LogEventInfo logEvent, string pri, string logEntry) { AppendPri(buffer, pri); AppendHeader(buffer, logEvent); AppendSpace(buffer); AppendMsg(buffer, logEvent, logEntry); asciiMessagePolicy.Apply(buffer); }
protected override void PrepareMessage(ByteArray buffer, LogEventInfo logEvent, string pri, string logEntry) { var encoding = new ASCIIEncoding(); AppendPriBytes(buffer, pri, encoding); AppendHeaderBytes(buffer, logEvent, encoding); buffer.Append(SpaceBytes); AppendMsgBytes(buffer, logEvent, logEntry, encoding); asciiMessagePolicy.Apply(buffer); }