Logging

The SDK logs messages to standard out, but by default does not log to a file. It is strongly encouraged to enable logging to a file. This may be done like so:

Objective-C     Swift
    ASLogBackendFile *fileBackend = [[ASLogBackendFile alloc] init];
    [fileBackend openLogAtPath:@"/path/to/log/file"];
    [[ASLog defaultLog] setLogBackend:fileBackend];

    let fileBackend = ASLogBackendFile()
    fileBackend.openLogAtPath("/path")
    ASLog.defaultLog().logBackend = fileBackend

The logs will be written to the indicated file. Such log files are indispensable when analyzing transfer behavior and performance.