c.l.w.errorlog : module documentation

Part of canonical.launchpad.webapp

Error logging facilities.
Function parse_iso8601_date Parses a standard ISO 8601 format date, ignoring time zones.
Class ErrorReportEvent A new error report has been created.
Class ErrorReport No class docstring; 0/1 class methods, 1/4 methods documented
Class ErrorReportingUtility No class docstring; 9/12 methods documented
Class ErrorReportRequest Undocumented
Class ScriptRequest Fake request that can be passed to ErrorReportingUtility.raising.
Class OopsLoggingHandler Python logging handler that records OOPSes on exception.
Class SoftRequestTimeout Soft request timeout expired
Function end_request Undocumented
Class UserRequestOops A user requested OOPS to log statements.
Function maybe_record_user_requested_oops If an OOPS has been requested, report one.
Class OopsNamespace A namespace handle traversals with ++oops++.
Function _normalise_whitespace Normalise the whitespace in a string to spaces
Function _safestr Undocumented
Function _is_sensitive Return True if the given request variable name is sensitive.
def _normalise_whitespace(s):
Normalise the whitespace in a string to spaces
def _safestr(obj):
Undocumented
def _is_sensitive(request, name):
Return True if the given request variable name is sensitive.

Sensitive request variables should not be recorded in OOPS
reports.  Currently we consider the following to be sensitive:
 * any name containing 'password' or 'passwd'
 * cookies
 * the HTTP_COOKIE header.
def parse_iso8601_date(datestring):
Parses a standard ISO 8601 format date, ignoring time zones.

Performs no validation whatsoever. It just plucks up to the first 7 numbers from the string and passes them to datetime.datetime, so would in fact parse any string containing reasonable numbers.

This function can be replaced with datetime.datetime.strptime() once we move to Python 2.5.

def end_request(event):
Undocumented
def maybe_record_user_requested_oops():
If an OOPS has been requested, report one.
ReturnsThe oopsid of the requested oops. Returns None if an oops was not requested, or if there is already an OOPS.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.