ChangeLogLevel
Alters the ContractCase log level below this matcher. Useful for debugging.
This has no effect on matching.
Note that this log level matcher will be saved into the contract, so it will also affect the log level during verification. Usually you will want to remove the use of this matcher before saving the contract.
- Typescript
- Java
import { matchers } from '@contract-case/case-definition-dsl'
new matchers.convenience.ChangeLogLevel(logLevel: string, child: any)
Parameters
Name | Type | Description |
---|---|---|
logLevel | string | The new LogLevel. One of "none" |
child | any | The next matcher in the tree. |
import io.contract_testing.contractcase.definitions.matchers.convenience.ChangeLogLevel;
new ChangeLogLevel(java.lang.String logLevel, java.lang.Object child);
Parameters
Name | Type | Description |
---|---|---|
logLevel | java.lang.String | The new LogLevel. One of "none" |
child | java.lang.Object | The next matcher in the tree. |