AjaxRemoteLogging Class Reference

Inherits er::ajax::AjaxDynamicElement.

Collaboration diagram for AjaxRemoteLogging:

Collaboration graph
[legend]

List of all members.

Classes

class  Log

Public Member Functions

 AjaxRemoteLogging (String arg0, NSDictionary arg1, WOElement arg2)
void appendToResponse (WOResponse response, WOContext context)
WOActionResults handleRequest (WORequest request, WOContext context)

Protected Member Functions

void addRequiredWebResources (WOResponse response, WOContext context)

Private Attributes

WOAssociation _filter
WOAssociation _level
WOAssociation _logger
WOAssociation _throttle


Detailed Description

Allows you to log window.console JS messages from the browser to a logger on the server. Pretty helpful when trying to debug JS problems that do not occur on your machine. As you will to a round trip to the server on each message, it's pretty costly and should be used with care.

Author:
ak
logger the log4j logger to append to (default: "AjaxRemoteLogging") level the log4j logging level to use (default: "info") throttle the number of milliseconds to collect statements before actually sending (default: 100) filter a javascript function that returns true on a single argument msg when the logging should go to the server

Constructor & Destructor Documentation

AjaxRemoteLogging ( String  arg0,
NSDictionary  arg1,
WOElement  arg2 
)


Member Function Documentation

void addRequiredWebResources ( WOResponse  response,
WOContext  context 
) [protected, virtual]

Override this method to append the needed scripts for this component.

Implements AjaxDynamicElement.

void appendToResponse ( WOResponse  response,
WOContext  context 
)

Overridden to call addRequiredWebResources(WOResponse, WOContext).

Reimplemented from AjaxDynamicElement.

WOActionResults handleRequest ( WORequest  request,
WOContext  context 
) [virtual]

Override this method to return the response for an Ajax request.

Parameters:
request 
context 

Implements AjaxDynamicElement.


Member Data Documentation

WOAssociation _filter [private]

WOAssociation _level [private]

WOAssociation _logger [private]

WOAssociation _throttle [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:38 2012 for Project Wonder by  doxygen 1.5.8