<!--
{
  "availability" : [
    "iOS: 4.3.0 -",
    "iPadOS: 4.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItemAccessLog/extendedLogData()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerItemAccessLog(im)extendedLogData"
  },
  "title" : "extendedLogData()"
}
-->

# extendedLogData()

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

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

## Return Value

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

## 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:

```objc
[[NSString alloc] initWithData:[myLog extendedLogData] encoding:[myLog extendedLogDataStringEncoding]]
```

---

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)