---
title: "Operations: Server: How to Get Logs Configuration"
url: "https://docs.ravendb.net/6.2/client-api/operations/server-wide/logs/set-logs-configuration"
version: "6.2"
language: "csharp"
---

# Operations: Server: How to Get Logs Configuration

> Client language: C#.
>
> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

To set the server logs configuration, use **SetLogsConfigurationOperation** from `Maintenance.Server`. The server logs configuration is not persisted and will get back to the original value after server restart.

## Syntax

```csharp
public SetLogsConfigurationOperation(Parameters parameters)
```

```csharp
public class Parameters
{
  public LogMode Mode { get; set; }
}
```

| Parameters | | |
| - | - | - |
| **Mode** | `LogMode` | Logging mode (level) to be set |

## Example

### Sync

```csharp
store
  .Maintenance
  .Server
  .Send(new SetLogsConfigurationOperation(
      new SetLogsConfigurationOperation.Parameters
      {
          Mode = LogMode.Information
      }));
```

### Async

```csharp
await store
  .Maintenance
  .Server
  .SendAsync(new SetLogsConfigurationOperation(
      new SetLogsConfigurationOperation.Parameters
      {
          Mode = LogMode.Information
      }));
```
