Uses of Class
org.jvnet.hudson.test.LogRecorder
-
Uses of LogRecorder in org.jvnet.hudson.test
Modifier and TypeMethodDescriptionLogRecorder.capture
(int maximum) Initializes log record capture, in addition to merely printing it.LogRecorder.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.LogRecorder.recordPackage
(Class<?> clazz, Level level) Same asrecord(String, Level)
but callsClass.getPackage()
and getName() for you first.Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<LogRecorder>
Creates aMatcher
that matches if theLogRecorder
has aLogRecord
at the specifiedLevel
and with a message matching the specified matcher.static org.hamcrest.Matcher<LogRecorder>
LogRecorder.recorded
(Level level, org.hamcrest.Matcher<String> message, org.hamcrest.Matcher<Throwable> thrown) Creates aMatcher
that matches if theLogRecorder
has aLogRecord
at the specifiedLevel
, with a message matching the specified matcher, and with aThrowable
matching the specified matcher.static org.hamcrest.Matcher<LogRecorder>
Creates aMatcher
that matches if theLogRecorder
has aLogRecord
with a message matching the specified matcher.static org.hamcrest.Matcher<LogRecorder>
Creates aMatcher
that matches if theLogRecorder
has aLogRecord
with a message matching the specified matcher and with aThrowable
matching the specified matcher.