Example #1
0
 /// <summary>
 /// Sends the
 /// rendered logging event over the network optionally concatenating it with a newline character.
 /// </summary>
 /// <param name="logEvent">The logging event.</param>
 protected internal override void Write(LogEventInfo logEvent)
 {
     NetworkSend(AddressLayout.GetFormattedMessage(logEvent), GetBytesToWrite(logEvent));
 }
Example #2
0
 /// <summary>
 /// Adds all layouts used by this target to the specified collection.
 /// </summary>
 /// <param name="layouts">The collection to add layouts to.</param>
 public override void PopulateLayouts(LayoutCollection layouts)
 {
     base.PopulateLayouts(layouts);
     AddressLayout.PopulateLayouts(layouts);
 }