---
title: OSLogMessage
framework: os
role: symbol
role_heading: Structure
path: os/oslogmessage
---

# OSLogMessage

An object that represents a log message.

## Declaration

```swift
@frozen struct OSLogMessage
```

## Overview

Overview important: You don’t create instances of OSLogMessage directly. Instead, the system creates them for you when writing messages to the unified logging system using a Logger.

## Topics

### Getting the Message Details

- [bufferSize](os/oslogmessage/buffersize.md)
- [interpolation](os/oslogmessage/interpolation.md)
- [maxOSLogArgumentCount](os/maxoslogargumentcount.md)

## Relationships

### Conforms To

- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByStringInterpolation](swift/expressiblebystringinterpolation.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)

## See Also

### Logging a Message

- [log(_:)](os/logger/log(_:).md)
- [log(level:_:)](os/logger/log(level:_:).md)
- [OSLogType](os/oslogtype.md)
