LogMod is used log requests according to the W3C extended log file format.
See docLib::WebMod
Slots
- fieldsSource
-
const Str fields := ...
Format of the log records as a string of #Fields names. See docLib::WebMod
- fileSource
-
const File file := noFile
Output log file.
-
static internal Str formatCsHeader(WebReq req, Str headerName)
-
static internal Str formatCsUriQuery(WebReq req, WebRes res)
-
const private FileLogger logger := FileLogger()
- makeSource
-
new make(|LogMod|? f := null)
Constructor with it-block.
-
static private File noFile := File(`no-file-configured`)
- onServiceSource
-
override Void onService()
Overrides web::Weblet.onService
Doc inherited from web::Weblet.onService
Service a web request. The default implementation routes to onGet, onPost, etc based on the request's method.
- onStartSource
-
override Void onStart()
Overrides web::WebMod.onStart
Doc inherited from web::WebMod.onStart
Initialization callback when web server is started.
- onStopSource
-
override Void onStop()
Overrides web::WebMod.onStop
Doc inherited from web::WebMod.onStop
Cleanup callback when web server is stoppped.