<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [convenience](./case-definition-dsl.matchers.convenience.md) &gt; [ChangeLogLevel](./case-definition-dsl.matchers.convenience.changeloglevel.md) &gt; [(constructor)](./case-definition-dsl.matchers.convenience.changeloglevel._constructor_.md)

## matchers.convenience.ChangeLogLevel.(constructor)

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.

**Signature:**

```typescript
constructor(logLevel: string, child: AnyMatcherOrData);
```

## Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

logLevel

</td><td>

string

</td><td>

The new LogLevel. One of "none" \| "error" \| "warn" \| "debug" \| "maintainerDebug" \| "deepMaintainerDebug". see \[LogLevel\](https://case.contract-testing.io/docs/reference/configuring\#loglevel-none--error--warn--debug--maintainerdebug) for details

</td></tr>
<tr><td>

child

</td><td>

AnyMatcherOrData

</td><td>

The next matcher in the tree.

</td></tr>
</tbody></table>
