---
title: accessLog()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avplayeritem/accesslog()
---

# accessLog()

Returns an object that represents a snapshot of the network access log.

## Declaration

```swift
nonisolated func accessLog() -> AVPlayerItemAccessLog?
```

## Return Value

Return Value An object that represents a snapshot of the network access log. The returned value can be nil.

## Discussion

Discussion If the method returns nil, there is no logging information currently available for the player item.

## See Also

### Accessing logging information

- [AVPlayerItemAccessLog](avfoundation/avplayeritemaccesslog.md)
- [AVPlayerItemAccessLogEvent](avfoundation/avplayeritemaccesslogevent.md)
- [errorLog()](avfoundation/avplayeritem/errorlog().md)
- [AVPlayerItemErrorLog](avfoundation/avplayeritemerrorlog.md)
- [AVPlayerItemErrorLogEvent](avfoundation/avplayeritemerrorlogevent.md)
