---
title: "NSLog(_:_:)"
framework: foundation
role: symbol
role_heading: Function
path: "foundation/nslog(_:_:)"
---

# NSLog(_:_:)

Logs an error message to the Apple System Log facility.

## Declaration

```swift
func NSLog(_ format: String, _ args: any CVarArg...)
```

## See Also

### Diagnostics and Debugging

- [NSLogv(_:_:)](foundation/nslogv(_:_:).md)
