---
title: "LogConfig"
slug: "api/session/types/logconfig"
sidebar:
  order: 127
---

<a id="ref-d4fb2b346ddd"></a>
<a id="ref-37143a229e80"></a>
<a id="ref-433f11ef274f"></a>

## Synopsis

```text
struct LogConfig {
    int *maxRecordCount;
    boolean *discardOldest;
    boolean *storeStackTrace;
    string *timeZoneId;
    LogFilter *filter;
}
```

See also: [LogFilter](/pCon/configuratorOnline/specs/api/session/types/logfilter#ref-f3457578d56f)

**`maxRecordCount`**

the maximum number of records to store in the buffer

default: `1000`

**`discardOldest`**

affects the behavior if a new log message is to be added to the buffer in case the buffer is already full (already contains `maxRecordCount` messages); If true, the oldest message from the buffer is discarded, and the new message is added. If false, the new message will be discarded.

default: `true`

**`storeStackTrace`**

whether or not to store the stack trace of exceptions that are the cause of log messages

default: `false`

**`timeZoneId`**

the time zone ID to use for log message time stamps returned to the client. See [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for a list of supported time zones (column 'TZ').

default: UTC

**`filter`**

the filter to select the messages to be added to the session-specific log buffer

default: no filter
