@Incubating public interface MockitoLogger
By default logs to console
All mockito logging goes through this class and could be customized as usual Mockito plugin.
Suppose you wrote an extension to customize logging, in order to tell Mockito to use it you need to put in your classpath:
org.awesome.mockito.AwesomeLogger
that
extends the MockitoLogger
.
mockito-extensions/org.mockito.plugins.MockitoLogger
". The content of this file is
exactly a one line with the qualified name:
org.awesome.mockito.AwesomeLogger
.
Note that if several mockito-extensions/org.mockito.plugins.MockitoLogger
files exists in the
classpath Mockito will only use the first returned by the standard ClassLoader.getResource(java.lang.String)
mechanism.
Modifier and Type | Method and Description |
---|---|
void |
log(Object what)
Log specified object.
|
@Incubating void log(Object what)
what
- to be logged