---
title: "getSessionLog"
slug: "api/session/operations/getsessionlog"
sidebar:
  order: 164
---

<a id="ref-d4c5ecda799a"></a>
<a id="ref-938baf4ba19b"></a>
<a id="ref-741fb15622e7"></a>
<a id="ref-0aa4b222a328"></a>

## Synopsis

```text
LogData *getSessionLog(SessionId sessionId,

boolean   reset)

throws SessionServiceFault;
```

See also: [`LogData`](/pCon/configuratorOnline/specs/api/session/types/logdata#ref-7800ec9acd8d), [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [`SessionServiceFault`](/pCon/configuratorOnline/specs/api/session/faults/sessionservicefault#ref-30a5c7817f4a)

The operation retrieves and optionally clears the content of the session specific log buffer.

`getSessionLog` returns the log messages accumulated since the last time the session log has been switched from disabled to enabled or the last time `getSessionLog` has been called with parameter `reset` set to true.

If the session log is currently disabled, no log data is returned. Otherwise a [`LogData`](/pCon/configuratorOnline/specs/api/session/types/logdata) element is returned, containing the number of discarded (in case of buffer overflow) and suppressed (i.e. filtered out) log messages, as well as a sequence of log records, each one representing a single log message.
