Table of Contents
Description of Methods
EnableType(logType as String) as Void
Enables log message of type logType. When a log type is enabled, system log messages of that type are sent to the message port which was set using SetMessagePort(). All system log events are disabled by default and must be explicitly enabled by the application.
The current valid logTypes are:
Sent whenever a successful HTTP connection is made. This means that the server responded to the HTTP request with a success (2xx) status code.
Note: This does not necessarily mean that all of the body of the request has been received successfully.
Sent whenever an error occurs while executing an HTTP request.
This may be sent during the time of the initial connection for two possible reasons:
- because the server responded with an error code, or
- data is being read from the body after the initial connection takes place.
|"bandwidth.minute"||Sent every minute to report the current measured bandwidth.|
This function is available in firmware 7.7 or later.
Note: All items in this table (to the right) apply to "http.complete."
Property / Key
When enabled, the “http.complete” events will be sent to Roku after an http transfer is completed for adaptive streams.
This event consolidates information related to:
- a cURL transfer such as DNS look up time,
- connection latency,
- transfer speed,
- and number of bytes.
The GMT time of the event, with a resolution of one millisecond
The URL that was requested.
The original URL. If the original URL was redirected, then Url represents the new redirected URL and OrigURL the original. OrigURL is included so that it's easy to correlate between events and URLs passed to components.
The HTTP method. "GET", "POST", or "HEAD"
For LogType “http.complete”, this will be “ok”
The IP address of the target server
The HTTP response code if available
Content type or MIME type
DNS name resolution time in seconds with double precision
Time taken to connect to the server (seconds)
Time taken to receive the first byte from the server (seconds)
Total data transfer time (seconds)
Transfer download speed in bytes per second
Number of bytes downloaded from the server
Transfer upload speed in bytes per second
Number of bytes uploaded to the server
See roSystemLogEvent for details on the information reported for each log type.