public void ManageLogLevels() { var bus = new EventStream(false); bus.StartDefaultLoggers((ActorSystemImpl)Sys); bus.Publish(new SetTarget(TestActor)); ExpectMsg("OK", TimeSpan.FromSeconds(5)); verifyLevel(bus, LogLevel.InfoLevel); bus.SetLogLevel(LogLevel.WarningLevel); verifyLevel(bus, LogLevel.WarningLevel); bus.SetLogLevel(LogLevel.DebugLevel); verifyLevel(bus, LogLevel.DebugLevel); bus.SetLogLevel(LogLevel.ErrorLevel); verifyLevel(bus, LogLevel.ErrorLevel); }
public void ManageLogLevels() { var bus = new EventStream(false); bus.StartDefaultLoggers(sys); bus.Publish(new SetTarget(testActor)); expectMsg("OK"); verifyLevel(bus, LogLevel.InfoLevel); bus.SetLogLevel(LogLevel.WarningLevel); verifyLevel(bus, LogLevel.WarningLevel); bus.SetLogLevel(LogLevel.DebugLevel); verifyLevel(bus, LogLevel.DebugLevel); bus.SetLogLevel(LogLevel.ErrorLevel); verifyLevel(bus, LogLevel.ErrorLevel); }