---
title: "Operations: Server: How to Get Logs Configuration"
url: "https://docs.ravendb.net/6.2/client-api/operations/server-wide/logs/get-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 get the server logs configuration, use **GetLogsConfigurationOperation** from `Maintenance.Server`

## Syntax

```csharp
public GetLogsConfigurationOperation()
```

### Return Value

The result of executing GetLogsConfigurationOperation is a **GetLogsConfigurationResult** object:

```csharp
public class GetLogsConfigurationResult
{
  public LogMode CurrentMode { get; set; }

  public LogMode Mode { get; set; }

  public string Path { get; set; }

  public bool UseUtcTime { get; set; }
}
```

| Property | Description |
| - | - |
| **CurrentMode** | Current mode that is active |
| **Mode** | Mode that is written in the configuration file and which will be used after a server restart |
| **Path** | Path to which logs will be written |
| **UseUtcTime** | Indicates if logs will be written in UTC or in server local time |

## Example

### Sync

```csharp
GetLogsConfigurationResult logsConfiguration = store
  .Maintenance
  .Server
  .Send(new GetLogsConfigurationOperation());
```

### Async

```csharp
GetLogsConfigurationResult logsConfiguration = await store
  .Maintenance
  .Server
  .SendAsync(new GetLogsConfigurationOperation());
```
