---
title: "Class DiagnosticsClient"
slug: "web-sdk--stylelabs.m.sdk.webclient.diagnostics.diagnosticsclient"
abstract: ""
---
# Class DiagnosticsClient

Contains functionality to get diagnostics, debug information and warnings from the SDK and its internals.

## Inheritance

object

DiagnosticsClient

## Namespace: StylelabsStylelabs.MSdkWebClientDiagnostics

## Assembly: Stylelabs.M.Sdk.WebClient.dll

## Syntax

```csharp
public static class DiagnosticsClient
```

## Properties

### [HttpLogging](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.diagnostics.httplogging.html)

Gets or sets how detailed HTTP requests and responses should be logged. This will be logged at level.

#### Declaration

```csharp
public static HttpLogging HttpLogging { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [HttpLogging](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.diagnostics.httplogging.html) |  |

#### Remarks

Defaults to HttpLogging.Minimal .

### LogCaching

Gets or sets a value indicating whether caching need to be logged. This will be logged at level.

#### Declaration

```csharp
public static bool LogCaching { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| bool |  |

#### Remarks

Defaults to true.

### Logger

Gets or sets the logger.

#### Declaration

```csharp
public static ILogger Logger { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| ILogger |  |

### LogResilience

Gets or sets a value indicating whether resilience related actions need to be logged (retries, timeouts, throttling...). This will be logged at level.

#### Declaration

```csharp
public static bool LogResilience { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| bool |  |

#### Remarks

Defaults to true.

### LogWarnings

Gets or sets a value indicating whether warnings should be logged. This will be logged at level.

#### Declaration

```csharp
public static bool LogWarnings { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| bool |  |

#### Remarks

Defaults to true.
