---
title: extendedLogData()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avplayeritemaccesslog/extendedlogdata()
---

# extendedLogData()

Returns a serialized representation of the access log in the Extended Log File Format.

## Declaration

```swift
func extendedLogData() -> Data?
```

## Return Value

Return Value A serialized representation of the access log in the Extended Log File Format.

## Discussion

Discussion This method converts the web server access log into a textual format that conforms to the W3C Extended Log File Format for web server log files. For more information, see http://www.w3.org/pub/WWW/TR/WD-logfile.html. You can generate a string suitable for console output using: [[NSString alloc] initWithData:[myLog extendedLogData] encoding:[myLog extendedLogDataStringEncoding]]

## See Also

### Accessing log data

- [events](avfoundation/avplayeritemaccesslog/events.md)
- [extendedLogDataStringEncoding](avfoundation/avplayeritemaccesslog/extendedlogdatastringencoding.md)
