
LogStep is used log requests according to the W3C extended log file format.
See docLib::WebApp
Slots
- fields
-
const Str fields := "date time c-ip cs-method cs-uri-stem cs-uri-query sc-status time-taken cs(User-Agent) cs(Referer)"
Format of the log records as a string of #Fields names. See docLib::WebApp
- file
-
const File file
Output log file.
-
static internal Str formatCsHeader(WebReq req, Str headerName)
-
static internal Str formatCsUriQuery(WebReq req, WebRes res)
-
static internal Str:Method formatters := Slot.findFunc("webapp::LogStep.formatDate").method(),"time":sys::Slot.findFunc("webapp::LogStep.formatTime").method(),"c-ip":sys::Slot.findFunc("webapp::LogStep.formatCIp").method(),"c-port":sys::Slot.findFunc("webapp::LogStep.formatCPort").method(),"cs-method":sys::Slot.findFunc("webapp::LogStep.formatCsMethod").method(),"cs-uri":sys::Slot.findFunc("webapp::LogStep.formatCsUri").method(),"cs-uri-stem":sys::Slot.findFunc("webapp::LogStep.formatCsUriStem").method(),"cs-uri-query":sys::Slot.findFunc("webapp::LogStep.formatCsUriQuery").method(),"sc-status":sys::Slot.findFunc("webapp::LogStep.formatScStatus").method(),"time-taken":sys::Slot.findFunc("webapp::LogStep.formatTimeTaken").method()]
- onAfterService
-
override Void onAfterService(WebReq req, WebRes res)
Callback after we've serviced the request.
- onBeforeService
-
override Void onBeforeService(WebReq req, WebRes res)
Callback before we begin servicing the request.
- onStart
-
override Void onStart(WebService service)
Callback when WebService is started.
- onStop
-
override Void onStop(WebService service)
Callback when WebService is stopped.