protected override void EmitBatch(IEnumerable <LogEvent> events) { foreach (var logEvent in events) { IfxEvent.Log(logEvent.GetIfxEvent(_formatter)); } }
/// <summary> /// This sample illustrates how to emit an event that is derived from Ifx PartA. /// </summary> public static void PartADerivedEventSample() { // MyEvent is defined in PartC.bond. SampleIfx.MyEvent myEvent = new SampleIfx.MyEvent { PartCField1 = "PartC Field 1", PartCField2 = "PartC Field 2" }; IfxEvent.Log(myEvent); }
public void Emit(LogEvent logEvent) { var e = logEvent.GetIfxEvent(_formatter); IfxEvent.Log(e); }