static void AttachToLocalLog(string filePath)
{
var config = FileStorage.CreateConfig(Path.GetDirectoryName(filePath) ?? "");
var cache = new FileTapeStream(filePath);
var store = new LocalEventStore(null, cache);
var send = config.CreateQueueWriter(Topology.RouterQueue);
var endpoint = new SimpleMessageSender(EnvelopeStreamer, send);
Application.Run(new DomainLogView(store, endpoint, EnvelopeStreamer));
}