public void ConfigureLogger() { var layout = new SimpleLayout("${date} [${threadid}] ${level} ${logger} ${ndc} - ${message}${newline}"); var channelFactory = Substitute.For<ChannelFactory>(); _channel = Substitute.For<IEventChannel>(); channelFactory.Create("localhost", 8765, 1).Returns(_channel); _target = new BrowserConsoleTarget(channelFactory) { Host = "localhost", Port = 8765, Layout = layout, Buffer = 1, Name = "ConsoleTest" }; }
public void ConfigureLogger() { var layout = new SimpleLayout("${date} [${threadid}] ${level} ${logger} ${ndc} - ${message}${newline}"); var channelFactory = Substitute.For <ChannelFactory>(); _channel = Substitute.For <IEventChannel>(); channelFactory.Create("localhost", 8765, 1).Returns(_channel); _target = new BrowserConsoleTarget(channelFactory) { Host = "localhost", Port = 8765, Layout = layout, Buffer = 1, Name = "ConsoleTest" }; }