labs.net.webChannel.WebChannelDebug Extends
Logs and keeps a buffer of debugging info for the Channel.

Inheritance

Constructor

goog.labs.net.webChannel.WebChannelDebug()

Instance Methods

Public Protected Private
browserOfflineResponse(url)
Logs that the browser went offline during the lifetime of a request.
Arguments:
url : goog.Uri
The URL being requested.
code »
debug(text)
Logs a debug message.
Arguments:
text : string
The message.
code »
dumpException(eopt_msg)
Logs an exception
Arguments:
e : Error
The error or error event.
opt_msg : string=
The optional message, defaults to 'Exception'.
code »
getLogger() goog.debug.Logger
Gets the logger used by this ChannelDebug.
Returns: goog.debug.Logger  The logger used by this WebChannelDebug.
code »
info(text)
Logs an info message.
Arguments:
text : string
The message.
code »
maybeRedactArray_(array)
Removes data from a response array that may be sensitive.
Arguments:
array : !Array
The array to clean.
code »
maybeRedactPostData_(data) ?string
Removes potentially private data from a request POST body so that we don't accidentally save private and personal data to the server logs.
Arguments:
data : ?string
The data string to clean.
Returns: ?string  The data string with sensitive data replaced by 'redacted'.
code »
redactResponse_(responseText) ?string
Removes potentially private data from a response so that we don't accidentally save private and personal data to the server logs.
Arguments:
responseText : ?string
A JSON response to clean.
Returns: ?string  The cleaned response.
code »
severe(text)
Logs a severe message.
Arguments:
text : string
The message.
code »
timeoutResponse(uri)
Logs a request timeout.
Arguments:
uri : goog.Uri
The uri that timed out.
code »
tridentChannelRequest(verburiidattempt)
Logs a Trident ActiveX request.
Arguments:
verb : string
The request type (GET/POST).
uri : goog.Uri
The request destination.
id : string | number | undefined
The request id.
attempt : number
Which attempt # the request was.
code »
tridentChannelResponseDone(idsuccessful)
Logs the done response received from a Trident ActiveX request.
Arguments:
id : string | number | undefined
The request id.
successful : boolean
Whether the request was successful.
code »
tridentChannelResponseText(idresponseText)
Logs the response text received from a Trident ActiveX request.
Arguments:
id : string | number | undefined
The request id.
responseText : string
The response text.
code »
warning(text)
Logs a warning message.
Arguments:
text : string
The message.
code »
xmlHttpChannelRequest(verburiidattemptpostData)
Logs an XmlHttp request..
Arguments:
verb : string
The request type (GET/POST).
uri : goog.Uri
The request destination.
id : string | number | undefined
The request id.
attempt : number
Which attempt # the request was.
postData : ?string
The data posted in the request.
code »
xmlHttpChannelResponseMetaData(verburiidattemptreadyStatestatusCode)
Logs the meta data received from an XmlHttp request.
Arguments:
verb : string
The request type (GET/POST).
uri : goog.Uri
The request destination.
id : string | number | undefined
The request id.
attempt : number
Which attempt # the request was.
readyState : goog.net.XmlHttp.ReadyState
The ready state.
statusCode : number
The HTTP status code.
code »
xmlHttpChannelResponseText(idresponseTextopt_desc)
Logs the response data received from an XmlHttp request.
Arguments:
id : string | number | undefined
The request id.
responseText : ?string
The response text.
opt_desc : ?string=
Optional request description.
code »

Instance Properties

logger_ : goog.debug.Logger
The logger instance.
Code »

Package labs.net.webChannel

Package Reference