Uses of Class
org.jvnet.hudson.test.LoggerRule
Packages that use LoggerRule
-
Uses of LoggerRule in org.jvnet.hudson.test
Methods in org.jvnet.hudson.test that return LoggerRuleModifier and TypeMethodDescriptionLoggerRule.capture(int maximum) Initializes log record capture, in addition to merely printing it.LoggerRule.quiet()Don't emit logs to the console, only record.Same asrecord(String, Level)but callsClass.getName()for you first.Same asrecord(Logger, Level)but callsLogger.getLogger(String)for you first.Start listening to a logger.LoggerRule.recordPackage(Class<?> clazz, Level level) Same asrecord(String, Level)but callsClass.getPackage()and getName() for you first.Methods in org.jvnet.hudson.test that return types with arguments of type LoggerRuleModifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<LoggerRule>Creates aMatcherthat matches if theLoggerRulehas aLogRecordat the specifiedLeveland with a message matching the specified matcher.static org.hamcrest.Matcher<LoggerRule>LoggerRule.recorded(Level level, org.hamcrest.Matcher<String> message, org.hamcrest.Matcher<Throwable> thrown) Creates aMatcherthat matches if theLoggerRulehas aLogRecordat the specifiedLevel, with a message matching the specified matcher, and with aThrowablematching the specified matcher.static org.hamcrest.Matcher<LoggerRule>Creates aMatcherthat matches if theLoggerRulehas aLogRecordwith a message matching the specified matcher.static org.hamcrest.Matcher<LoggerRule>Creates aMatcherthat matches if theLoggerRulehas aLogRecordwith a message matching the specified matcher and with aThrowablematching the specified matcher.Methods in org.jvnet.hudson.test with parameters of type LoggerRuleModifier and TypeMethodDescriptionvoidJenkinsRule.showAgentLogs(hudson.model.Slave s, LoggerRule loggerRule) Same asJenkinsRule.showAgentLogs(Slave, Map)but taking a preconfigured list of loggers as a convenience.