Uses of Class
org.jvnet.hudson.test.LoggerRule
-
Packages that use LoggerRule Package Description org.jvnet.hudson.test Test harness for Jenkins and its plugins. -
-
Uses of LoggerRule in org.jvnet.hudson.test
Methods in org.jvnet.hudson.test that return LoggerRule Modifier and Type Method Description LoggerRule
LoggerRule. capture(int maximum)
Initializes log record capture, in addition to merely printing it.LoggerRule
LoggerRule. quiet()
Don't emit logs to the console, only record.LoggerRule
LoggerRule. record(Class<?> clazz, Level level)
Same asrecord(String, Level)
but callsClass.getName()
for you first.LoggerRule
LoggerRule. record(String name, Level level)
Same asrecord(Logger, Level)
but callsLogger.getLogger(String)
for you first.LoggerRule
LoggerRule. record(Logger logger, Level level)
Start listening to a logger.LoggerRule
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 LoggerRule Modifier and Type Method Description static org.hamcrest.Matcher<LoggerRule>
LoggerRule. recorded(Level level, org.hamcrest.Matcher<String> message)
Creates aMatcher
that matches if theLoggerRule
has aLogRecord
at the specifiedLevel
and 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 aMatcher
that matches if theLoggerRule
has aLogRecord
at the specifiedLevel
, with a message matching the specified matcher, and with aThrowable
matching the specified matcher.static org.hamcrest.Matcher<LoggerRule>
LoggerRule. recorded(org.hamcrest.Matcher<String> message)
Creates aMatcher
that matches if theLoggerRule
has aLogRecord
with a message matching the specified matcher.static org.hamcrest.Matcher<LoggerRule>
LoggerRule. recorded(org.hamcrest.Matcher<String> message, org.hamcrest.Matcher<Throwable> thrown)
Creates aMatcher
that matches if theLoggerRule
has aLogRecord
with a message matching the specified matcher and with aThrowable
matching the specified matcher.Methods in org.jvnet.hudson.test with parameters of type LoggerRule Modifier and Type Method Description void
JenkinsRule. showAgentLogs(hudson.model.Slave s, LoggerRule loggerRule)
Same asJenkinsRule.showAgentLogs(Slave, Map)
but taking a preconfigured list of loggers as a convenience.
-