|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.restassured.config.LogConfig
public class LogConfig
Configure the logging for REST Assured.
Note that only log things known to REST Assured (i.e. the request- and response specifications) will be logged. If you need to log what's actually sent on the wire refer to the HTTP Client logging docs or use an external tool such as Wireshark.
| Constructor Summary | |
|---|---|
LogConfig()
Configure the default stream to use the System.out stream (default). |
|
LogConfig(PrintStream defaultPrintStream,
boolean prettyPrintingEnabled)
Configure pretty printing and the default stream where logs should be written if not specified explicitly by a filter. |
|
| Method Summary | |
|---|---|
LogConfig |
and()
Syntactic sugar. |
PrintStream |
defaultStream()
|
LogConfig |
defaultStream(PrintStream printStream)
Specify a new default stream to the print to. |
LogConfig |
enablePrettyPrinting(boolean shouldEnable)
Specify a whether or not to enable pretty printing by default. |
boolean |
isPrettyPrintingEnabled()
|
static LogConfig |
logConfig()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogConfig()
public LogConfig(PrintStream defaultPrintStream,
boolean prettyPrintingEnabled)
given().log().all()...or
expect().log.ifError(). ..It will not override explicit streams defined by using the
RequestLoggingFilter or the ResponseLoggingFilter.
defaultPrintStream - The default print stream to use for the LogSpecification's.prettyPrintingEnabled - Enable or disable pretty printing when logging. Pretty printing is only possible when content-type is XML, JSON or HTML.| Method Detail |
|---|
public PrintStream defaultStream()
public LogConfig defaultStream(PrintStream printStream)
printStream - The stream
public boolean isPrettyPrintingEnabled()
public LogConfig enablePrettyPrinting(boolean shouldEnable)
shouldEnable - true if pretty-printing should be enabled, false otherwise.
public static LogConfig logConfig()
public LogConfig and()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||