# LogEntry

Type: LogEntry

Represents a log entry for a connection.

Schema: [LogEntry](https://sourcey-ditto.pages.dev/http-api-doc/models/logentry.md)

- `timestamp` (required)
  Type: string
  
  Timestamp of the log entry.
  
  Example:
  
  ```json
  "2019-01-21T08:57:24.710Z"
  ```

- `correlationId` (required)
  Type: string
  
  Correlation ID that is associated with the log entry.
  
  Example:
  
  ```json
  "759304b8-8056-11e9-bc42-526af7764f64"
  ```

- `message` (required)
  Type: string
  
  The log message.
  
  Example:
  
  ```json
  "Successfully connected to ... at ..."
  ```

- `category` (required)
  Reference: [LogCategory](https://sourcey-ditto.pages.dev/http-api-doc/models/logcategory.md); Type: LogCategory
  
  A category to which the log entry can be referred to.
  
  enum: ["source","target","response","connection"]

- `type` (required)
  Reference: [LogType](https://sourcey-ditto.pages.dev/http-api-doc/models/logtype.md); Type: LogType
  
  The type of a log entry describing during what kind of activity the entry was created.
  
  enum: ["consumed","dispatched","filtered","mapped","dropped","enforced","published","other"]

- `level` (required)
  Reference: [LogLevel](https://sourcey-ditto.pages.dev/http-api-doc/models/loglevel.md); Type: LogLevel
  
  Escalation level of a log entry.
  
  enum: ["success","failure"]

- `address` (optional)
  Type: string
  
  Connection address on which the log occurred.
  
  Example:
  
  ```json
  "telemetry/address"
  ```

- `thingId` (optional)
  Type: string
  
  The thing for which the log entry was created.
  
  Example:
  
  ```json
  "org.ditto:theThing"
  ```