<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSLogMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:2os12OSLogMessageV"
  },
  "title" : "OSLogMessage"
}
-->

# OSLogMessage

An object that represents a log message.

```
@frozen struct OSLogMessage
```

## Overview> Important:
> You don’t create instances of ``doc://com.apple.os/documentation/os/OSLogMessage`` directly. Instead, the system creates them for you when writing messages to the unified logging system using a ``doc://com.apple.os/documentation/os/Logger``.

## Topics

### Creating a Log Message

### Getting the Message Details

[`bufferSize`](/documentation/os/OSLogMessage/bufferSize)

The byte size of the buffer that the logging system receives.

[`interpolation`](/documentation/os/OSLogMessage/interpolation)

The log message’s string interpolation.

[`maxOSLogArgumentCount`](/documentation/os/maxOSLogArgumentCount)

The maximum number of interpolated expressions that a log message may contain.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)