---
title: disabled
framework: os
role: symbol
role_heading: Type Property
path: os/ossignposter/disabled
---

# disabled

A shared signposter that doesn’t emit signposts at runtime.

## Declaration

```swift
static var disabled: OSSignposter { get }
```

## Discussion

Discussion You can use the signposter this property returns to disable signposts in your production builds without having to refactor your code, as the following example demonstrates: let signposter: OSSignposter #if DEBUG signposter = OSSignposter() #else signposter = OSSignposter.disabled #endif To determine if a signposter can emit signposts, use the isEnabled property.

## See Also

### Creating a Signposter

- [init()](os/ossignposter/init().md)
- [init(subsystem:category:)](os/ossignposter/init(subsystem:category:)-94xpb.md)
- [init(subsystem:category:)](os/ossignposter/init(subsystem:category:)-4vdri.md)
- [init(logger:)](os/ossignposter/init(logger:).md)
- [init(logHandle:)](os/ossignposter/init(loghandle:).md)
