Created
December 14, 2013 03:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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