Skip to content

Instantly share code, notes, and snippets.

@nblumhardt
Created December 14, 2013 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nblumhardt/7955461 to your computer and use it in GitHub Desktop.
Save nblumhardt/7955461 to your computer and use it in GitHub Desktop.
Just a simple example to show how plugins ("apps") consume data from the stream
using Seq.Apps;
using Seq.Apps.LogEvents;
namespace Seq.BuiltIn.SampleApp
{
public class SampleReactor : Reactor, ISubscribeTo<LogEventData>
{
public void On(Event<LogEventData> evt)
{
if (evt.Data.Level == LogEventLevel.Error)
Log.Error("Here was an error: {RenderedMessage}", evt.Data.RenderedMessage);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment