---
title: "init(rawValue:)"
framework: os
role: symbol
role_heading: Initializer
path: "os/oslogtype/init(rawvalue:)"
---

# init(rawValue:)

Creates a log type from the specified raw value.

## Declaration

```swift
init(rawValue: UInt8)
```

## Parameters

- `rawValue`: The raw value of the log type to create.

## See Also

### Creating a Log Type

- [init(_:)](os/oslogtype/init(_:).md)
