Uses of Class
org.jvnet.hudson.test.LogRecorder
Packages that use LogRecorder
-
Uses of LogRecorder in org.jvnet.hudson.test
Methods in org.jvnet.hudson.test that return LogRecorderModifier 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.Methods in org.jvnet.hudson.test that return types with arguments of type LogRecorderModifier 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.