<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "os",
  "identifier" : "/documentation/os/OSLogType/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "os"
    ],
    "preciseIdentifier" : "s:So13os_log_type_tayABs5UInt8Vcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates a log type from the specified value.

```
init(_ rawValue: UInt8)
```

## Parameters

`rawValue`

The raw value of the log type to create.

## Discussion

---

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)